YetAnotherCoupler 3.5.2
|
Go to the source code of this file.
Data Structures | |
struct | yac_interpolation_buffer |
Macros | |
#define | FRAC_MASK_TOL (1e-12) |
#define | COMPUTE_TGT_FIELD_WGT_FRAC_(TGT_POS, WEIGHT, SCALE) |
#define | COMPUTE_TGT_FIELD_WGT_NOFRAC_(TGT_POS, WEIGHT, SCALE) |
#define | COMPUTE_TGT_FIELD_WGT(COMPUTE, SCALE) |
#define | COMPUTE_TGT_FIELD_WGT_FRAC(SCALE) COMPUTE_TGT_FIELD_WGT(COMPUTE_TGT_FIELD_WGT_FRAC_, SCALE) |
#define | COMPUTE_TGT_FIELD_WGT_NOFRAC(SCALE) COMPUTE_TGT_FIELD_WGT(COMPUTE_TGT_FIELD_WGT_NOFRAC_, SCALE) |
#define | NO_SCALING(RESULT) (RESULT) |
#define | MULT(RESULT) ((RESULT) * scale_factor) |
#define | ADD(RESULT) ((RESULT) + scale_summand) |
#define | MULT_ADD(RESULT) ((RESULT) * scale_factor + scale_summand) |
#define | COMPUTE_FIELD(COMPUTE_FIELD_FRAC, COMPUTE_FIELD_NOFRAC) |
#define | COMPUTE_TGT_FIELD_FRAC(SCALE) |
#define | COMPUTE_TGT_FIELD_NOFRAC(SCALE) |
#define | CHECK_WITH_FRAC_MASK(ROUTINE) |
Enumerations | |
enum | yac_interpolation_buffer_type { SEND_BUFFER , RECV_BUFFER } |
Functions | |
static void | compute_tgt_field_wgt (double const *restrict **src_fields, double const *restrict **src_frac_masks, double const *restrict *remote_src_fields, double const *restrict *remote_src_frac_masks, double *restrict *tgt_field, size_t const *restrict tgt_pos, size_t tgt_count, size_t const *restrict prefix_num_src_per_tgt, double const *restrict weights, size_t const *restrict src_field_idx, size_t const *restrict src_idx, size_t num_src_fields, size_t collection_size, double frac_mask_fallback_value, double scale_factor, double scale_summand) |
static void | compute_tgt_field (double const *restrict **src_fields, double const *restrict **src_frac_masks, double *restrict *tgt_field, size_t *restrict tgt_buffer_sizes, size_t num_src_fields, size_t collection_size, double frac_mask_fallback_value, double scale_factor, double scale_summand) |
struct yac_interpolation_buffer | yac_interpolation_buffer_init (Xt_redist *redists, size_t num_fields, size_t collection_size, enum yac_interpolation_buffer_type type) |
struct yac_interpolation_buffer | yac_interpolation_buffer_init_2 (Xt_redist *redists, size_t *min_buffer_sizes, size_t num_fields, size_t collection_size, enum yac_interpolation_buffer_type type) |
struct yac_interpolation_buffer | yac_interpolation_buffer_copy (struct yac_interpolation_buffer buffer, size_t num_fields, size_t collection_size) |
void | yac_interpolation_buffer_free (struct yac_interpolation_buffer *buffer) |
#define ADD | ( | RESULT | ) | ((RESULT) + scale_summand) |
#define CHECK_WITH_FRAC_MASK | ( | ROUTINE | ) |
Definition at line 223 of file interpolation_utils.h.
#define COMPUTE_FIELD | ( | COMPUTE_FIELD_FRAC, | |
COMPUTE_FIELD_NOFRAC ) |
#define COMPUTE_TGT_FIELD_FRAC | ( | SCALE | ) |
#define COMPUTE_TGT_FIELD_NOFRAC | ( | SCALE | ) |
#define COMPUTE_TGT_FIELD_WGT | ( | COMPUTE, | |
SCALE ) |
#define COMPUTE_TGT_FIELD_WGT_FRAC | ( | SCALE | ) | COMPUTE_TGT_FIELD_WGT(COMPUTE_TGT_FIELD_WGT_FRAC_, SCALE) |
#define COMPUTE_TGT_FIELD_WGT_FRAC_ | ( | TGT_POS, | |
WEIGHT, | |||
SCALE ) |
#define COMPUTE_TGT_FIELD_WGT_NOFRAC | ( | SCALE | ) | COMPUTE_TGT_FIELD_WGT(COMPUTE_TGT_FIELD_WGT_NOFRAC_, SCALE) |
#define COMPUTE_TGT_FIELD_WGT_NOFRAC_ | ( | TGT_POS, | |
WEIGHT, | |||
SCALE ) |
#define FRAC_MASK_TOL (1e-12) |
#define MULT | ( | RESULT | ) | ((RESULT) * scale_factor) |
#define MULT_ADD | ( | RESULT | ) | ((RESULT) * scale_factor + scale_summand) |
#define NO_SCALING | ( | RESULT | ) | (RESULT) |
Enumerator | |
---|---|
SEND_BUFFER | |
RECV_BUFFER |
Definition at line 234 of file interpolation_utils.h.
|
inlinestatic |
|
inlinestatic |
struct yac_interpolation_buffer yac_interpolation_buffer_copy | ( | struct yac_interpolation_buffer | buffer, |
size_t | num_fields, | ||
size_t | collection_size ) |
Definition at line 115 of file interpolation_utils.c.
void yac_interpolation_buffer_free | ( | struct yac_interpolation_buffer * | buffer | ) |
struct yac_interpolation_buffer yac_interpolation_buffer_init | ( | Xt_redist * | redists, |
size_t | num_fields, | ||
size_t | collection_size, | ||
enum yac_interpolation_buffer_type | type ) |
Definition at line 87 of file interpolation_utils.c.
struct yac_interpolation_buffer yac_interpolation_buffer_init_2 | ( | Xt_redist * | redists, |
size_t * | min_buffer_sizes, | ||
size_t | num_fields, | ||
size_t | collection_size, | ||
enum yac_interpolation_buffer_type | type ) |
Definition at line 99 of file interpolation_utils.c.