YetAnotherCoupler 3.5.2
|
Go to the source code of this file.
Enumerations | |
enum | yac_interp_weights_reorder_type { YAC_MAPPING_ON_SRC , YAC_MAPPING_ON_TGT } |
Functions | |
struct yac_interp_weights * | yac_interp_weights_new (MPI_Comm comm, enum yac_location tgt_location, enum yac_location *src_locations, size_t num_src_fields) |
void | yac_interp_weights_write_to_file (struct yac_interp_weights *weights, char const *filename, char const *src_grid_name, char const *tgt_grid_name, size_t src_grid_size, size_t tgt_grid_size) |
struct yac_interpolation * | yac_interp_weights_get_interpolation (struct yac_interp_weights *weights, enum yac_interp_weights_reorder_type reorder, size_t collection_size, double frac_mask_fallback_value, double scaling_factor, double scaling_summand, char const *yaxt_exchanger_name) |
size_t | yac_interp_weights_get_interp_count (struct yac_interp_weights *weights) |
yac_int * | yac_interp_weights_get_interp_tgt (struct yac_interp_weights *weights) |
void | yac_interp_weights_delete (struct yac_interp_weights *weights) |
Enumerator | |
---|---|
YAC_MAPPING_ON_SRC | weights will be appied at source processes |
YAC_MAPPING_ON_TGT | weights will be applied at target processes |
Definition at line 18 of file interp_weights.h.
void yac_interp_weights_delete | ( | struct yac_interp_weights * | weights | ) |
Destructor for interpolation weights.
[in,out] | weights | interpolation weights |
Definition at line 4871 of file interp_weights.c.
size_t yac_interp_weights_get_interp_count | ( | struct yac_interp_weights * | weights | ) |
returns the count of all target for which the weights contain a stencil
[in] | weights | interpolation weights |
Definition at line 4847 of file interp_weights.c.
yac_int * yac_interp_weights_get_interp_tgt | ( | struct yac_interp_weights * | weights | ) |
returns the global ids of all targets for which the weights contain a stencil
[in] | weights | interpolation weights |
Definition at line 4853 of file interp_weights.c.
struct yac_interpolation * yac_interp_weights_get_interpolation | ( | struct yac_interp_weights * | weights, |
enum yac_interp_weights_reorder_type | reorder, | ||
size_t | collection_size, | ||
double | frac_mask_fallback_value, | ||
double | scaling_factor, | ||
double | scaling_summand, | ||
char const * | yaxt_exchanger_name ) |
generates an interpolation from interpolation weights
[in] | weights | interpolation weights |
[in] | reorder | determines at which processes the weights are to be applied |
[in] | collection_size | collection size |
[in] | frac_mask_fallback_value | fallback value for dynamic fractional masking |
[in] | scaling_factor | scaling factor |
[in] | scaling_summand | scaling summand |
[in] | yaxt_exchanger_name | name of the yaxt exchanger that is to be used in the interpolation |
Definition at line 3776 of file interp_weights.c.
struct yac_interp_weights * yac_interp_weights_new | ( | MPI_Comm | comm, |
enum yac_location | tgt_location, | ||
enum yac_location * | src_locations, | ||
size_t | num_src_fields ) |
Constructor for interpolation weights.
[in] | comm | MPI communicator |
[in] | tgt_location | location of target field |
[in] | src_locations | locations of source fields |
[in] | num_src_fields | number of source fields |
Definition at line 130 of file interp_weights.c.
void yac_interp_weights_write_to_file | ( | struct yac_interp_weights * | weights, |
char const * | filename, | ||
char const * | src_grid_name, | ||
char const * | tgt_grid_name, | ||
size_t | src_grid_size, | ||
size_t | tgt_grid_size ) |
writes interpolation weights to file
[in] | weights | interpolation weights |
[in] | filename | file name |
[in] | src_grid_name | name of the source grid |
[in] | tgt_grid_name | name of the target grid |
[in] | src_grid_size | global size of the source grid |
[in] | tgt_grid_size | global size of the target grid |
Definition at line 4615 of file interp_weights.c.