|
YAC 3.12.0
Yet Another Coupler
|
#include "location.h"

Go to the source code of this file.
Functions | |
| void | write_weight_file (char const *file_name, int const *src_id, int const *tgt_id, double const *weights, unsigned num_links, enum yac_location const *src_locations, unsigned num_src_fields, int const *num_links_per_src_field, int *tgt_id_fixed, unsigned num_fixed_tgt, double *fixed_values, int *num_tgt_per_fixed_value, unsigned num_fixed_values, enum yac_location tgt_location, char const *src_grid_name, char const *tgt_grid_name) |
| void | write_cdo_weight_file (char const *file_name, int const *src_id, int const *tgt_id, double const *weights, unsigned num_links, char const *src_grid_name, char const *tgt_grid_name) |
| void | check_weight_file (char const *file_name, int const *ref_src_address, int const *ref_tgt_address, double const *ref_weights, unsigned ref_num_links, enum yac_location const *ref_src_locations, unsigned ref_num_src_fields, int const *ref_num_links_per_src_field, int const *ref_tgt_id_fixed, double const *ref_fixed_values, int const *ref_num_tgt_per_fixed_value, unsigned ref_num_fixed_values, enum yac_location ref_tgt_location, char const *ref_src_grid_name, char const *ref_tgt_grid_name) |
| void check_weight_file | ( | char const * | file_name, |
| int const * | ref_src_address, | ||
| int const * | ref_tgt_address, | ||
| double const * | ref_weights, | ||
| unsigned | ref_num_links, | ||
| enum yac_location const * | ref_src_locations, | ||
| unsigned | ref_num_src_fields, | ||
| int const * | ref_num_links_per_src_field, | ||
| int const * | ref_tgt_id_fixed, | ||
| double const * | ref_fixed_values, | ||
| int const * | ref_num_tgt_per_fixed_value, | ||
| unsigned | ref_num_fixed_values, | ||
| enum yac_location | ref_tgt_location, | ||
| char const * | ref_src_grid_name, | ||
| char const * | ref_tgt_grid_name ) |
checks whether data in a weight file is identical to the reference data provided
| [in] | file_name | name of the weight file that is to be checked |
| [in] | ref_src_address | reference source indices for all links |
| [in] | ref_tgt_address | reference target indices for all links |
| [in] | ref_weights | reference weights for all links |
| [in] | ref_num_links | reference number of links |
| [in] | ref_src_locations | reference location for each source field |
| [in] | ref_num_src_fields | reference number of source fields |
| [in] | ref_num_links_per_src_field | reference number of links per source field |
| [in] | ref_tgt_id_fixed | reference target indices for all points that receive a fixed value |
| [in] | ref_fixed_values | reference fixed values to be used |
| [in] | ref_num_tgt_per_fixed_value | number of target points per fixed value |
| [in] | ref_num_fixed_values | reference number of fixed values |
| [in] | ref_tgt_location | reference location of the target field |
| [in] | ref_src_grid_name | name of the source grid |
| [in] | ref_tgt_grid_name | name of the target grid |
Definition at line 233 of file weight_file_common.c.

| void write_cdo_weight_file | ( | char const * | file_name, |
| int const * | src_id, | ||
| int const * | tgt_id, | ||
| double const * | weights, | ||
| unsigned | num_links, | ||
| char const * | src_grid_name, | ||
| char const * | tgt_grid_name ) |
creates a CDO-like weight file
| [in] | file_name | name of the weight file |
| [in] | src_id | source indices for all links |
| [in] | tgt_id | target indices for all links |
| [in] | weights | weights for all links |
| [in] | num_links | number of links |
| [in] | src_grid_name | name of the source grid |
| [in] | tgt_grid_name | name of the target grid |
Definition at line 170 of file weight_file_common.c.

| void write_weight_file | ( | char const * | file_name, |
| int const * | src_id, | ||
| int const * | tgt_id, | ||
| double const * | weights, | ||
| unsigned | num_links, | ||
| enum yac_location const * | src_locations, | ||
| unsigned | num_src_fields, | ||
| int const * | num_links_per_src_field, | ||
| int * | tgt_id_fixed, | ||
| unsigned | num_fixed_tgt, | ||
| double * | fixed_values, | ||
| int * | num_tgt_per_fixed_value, | ||
| unsigned | num_fixed_values, | ||
| enum yac_location | tgt_location, | ||
| char const * | src_grid_name, | ||
| char const * | tgt_grid_name ) |
creates a weight file
| [in] | file_name | name of the weight file |
| [in] | src_id | source indices for all links |
| [in] | tgt_id | target indices for all links |
| [in] | weights | weights for all links |
| [in] | num_links | number of links |
| [in] | src_locations | location for each source field |
| [in] | num_src_fields | number of source fields |
| [in] | num_links_per_src_field | number of links per source field |
| [in] | tgt_id_fixed | target indices for all points that receive a fixed value |
| [in] | num_fixed_tgt | number of target points that receive a fixed value |
| [in] | fixed_values | fixed values to be used |
| [in] | num_tgt_per_fixed_value | number of target points per fixed value |
| [in] | num_fixed_values | number of fixed values |
| [in] | tgt_location | location of the target field |
| [in] | src_grid_name | name of the source grid |
| [in] | tgt_grid_name | name of the target grid |
Definition at line 15 of file weight_file_common.c.
