YetAnotherCoupler 3.2.0_a

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) 
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 4784 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 4760 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 4766 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  
) 
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 
Definition at line 3699 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 129 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 4528 of file interp_weights.c.