|
YAC 3.13.0
Yet Another Coupler
|


Go to the source code of this file.
Macros | |
| #define | YAC_MAX_CHARLEN (132) |
| #define | __attribute__(x) /*NOTHING*/ |
| #define | TYPEDEF_YAC_FUNC_COMPUTE_WEIGHTS |
Typedefs | |
| typedef YAC_INT | yac_int |
| typedef void(* | yac_abort_func) (MPI_Comm comm, const char *msg, const char *source, int line) __attribute__((noreturn)) |
| typedef void(* | yac_func_compute_weights) (double const tgt_coords[3], int src_cell_id, size_t src_cell_idx, int const **global_results_points, double **result_weights, size_t *result_count, void *user_data) |
Functions | |
| void | yac_cmpi_handshake (MPI_Comm comm, size_t n, char const **group_names, MPI_Comm *group_comms) |
| int | yac_cget_default_instance_id () |
| void | yac_cinit (void) |
| void | yac_cinit_instance (int *yac_instance_id) |
| void | yac_cinit_comm (MPI_Comm comm) |
| void | yac_cinit_comm_instance (MPI_Comm comm, int *yac_instance_id) |
| void | yac_cinit_dummy (void) |
| void | yac_cinit_comm_dummy (MPI_Comm comm) |
| void | yac_cread_config_yaml_instance (int yac_instance_id, const char *yaml_file) |
| void | yac_cread_config_yaml (const char *yaml_file) |
| void | yac_cread_config_json_instance (int yac_instance_id, const char *json_file) |
| void | yac_cread_config_json (const char *json_file) |
| void | yac_cset_config_output_file_instance (int yac_instance_id, const char *filename, int fileformat, int sync_location, int include_definitions) |
| void | yac_cset_config_output_file (const char *filename, int fileformat, int sync_location, int include_definitions) |
| void | yac_cset_grid_output_file_instance (int yac_instance_id, const char *gridname, const char *filename) |
| void | yac_cset_grid_output_file (const char *gridname, const char *filename) |
| void | yac_ccleanup () |
| Clean-up default YAC instance (see Restarting YAC) | |
| void | yac_ccleanup_instance (int yac_instance_id) |
| Clean-up a YAC instance (see Restarting YAC) | |
| void | yac_cfinalize () |
| Finalises YAC. | |
| void | yac_cfinalize_instance (int yac_instance_id) |
| Finalises YAC. | |
| void | yac_cdef_datetime (const char *start_datetime, const char *end_datetime) |
| void | yac_cdef_datetime_instance (int yac_instance_id, const char *start_datetime, const char *end_datetime) |
| void | yac_cdef_calendar (int calendar) |
| int | yac_cget_calendar () |
| void | yac_cget_groupcomm (MPI_Comm *group_comm) |
| void | yac_cget_groupcomm_instance (int yac_instance_id, MPI_Comm *group_comm) |
| void | yac_cpredef_comp (char const *comp_name, int *comp_id) |
| void | yac_cpredef_comp_instance (int yac_instance_id, char const *comp_name, int *comp_id) |
| void | yac_cdef_comp (const char *comp_name, int *comp_id) |
| void | yac_cdef_comp_instance (int yac_instance_id, const char *comp_name, int *comp_id) |
| void | yac_cdef_comps (const char **comp_names, int num_comps, int *comp_ids) |
| void | yac_cdef_comps_instance (int yac_instance_id, const char **comp_names, int num_comps, int *comp_ids) |
| void | yac_cget_comp_comm (int comp_id, MPI_Comm *comp_comm) |
| void | yac_cget_comps_comm (const char **comp_names, int num_comps, MPI_Comm *comps_comm) |
| void | yac_cget_comps_comm_instance (int yac_instance_id, const char **comp_names, int num_comps, MPI_Comm *comps_comm) |
| void | yac_cdef_points_reg2d (int const grid_id, int const *nbr_points, int const location, double const *x_points, double const *y_points, int *point_id) |
| void | yac_cdef_points_curve2d (int const grid_id, int const *nbr_points, int const location, double const *x_points, double const *y_points, int *point_id) |
| void | yac_cdef_points_unstruct (int const grid_id, int const nbr_points, int const location, double const *x_points, double const *y_points, int *point_id) |
| void | yac_cdef_points_reg2d_rot (int const grid_id, int const *nbr_points, int const location, double const *x_points, double const *y_points, double x_north_pole, double y_north_pole, int *point_id) |
| void | yac_cdef_grid_reg2d (const char *grid_name, int nbr_vertices[2], int cyclic[2], double *x_vertices, double *y_vertices, int *grid_id) |
| void | yac_cdef_grid_curve2d (const char *grid_name, int nbr_vertices[2], int cyclic[2], double *x_vertices, double *y_vertices, int *grid_id) |
| void | yac_cdef_grid_unstruct (const char *grid_name, int nbr_vertices, int nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex, int *grid_id) |
| void | yac_cdef_grid_unstruct_ll (const char *grid_name, int nbr_vertices, int nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex, int *grid_id) |
| void | yac_cdef_grid_unstruct_edge (const char *grid_name, int nbr_vertices, int nbr_cells, int nbr_edges, int *num_edges_per_cell, double *x_vertices, double *y_vertices, int *cell_to_edge, int *edge_to_vertex, int *grid_id) |
| void | yac_cdef_grid_unstruct_edge_ll (const char *grid_name, int nbr_vertices, int nbr_cells, int nbr_edges, int *num_edges_per_cell, double *x_vertices, double *y_vertices, int *cell_to_edge, int *edge_to_vertex, int *grid_id) |
| void | yac_cdef_grid_cloud (const char *grid_name, int nbr_points, double *x_points, double *y_points, int *grid_id) |
| void | yac_cdef_grid_reg2d_rot (const char *grid_name, int nbr_vertices[2], int cyclic[2], double *x_vertices, double *y_vertices, double x_north_pole, double y_north_pole, int *grid_id) |
| void | yac_cset_global_index_yac_int (yac_int const *global_index, int location, int grid_id) |
| void | yac_cset_global_index (int const *global_index, int location, int grid_id) |
| void | yac_cset_core_mask (int const *is_core, int location, int grid_id) |
| void | yac_cset_mask (int const *is_valid, int points_id) |
| void | yac_cdef_mask (int const grid_id, int const nbr_points, int const location, int const *is_valid, int *mask_id) |
| void | yac_cdef_mask_named (int const grid_id, int const nbr_points, int const location, int const *is_valid, char const *name, int *mask_id) |
| void | yac_cdef_field (char const *field_name, int const component_id, int const *point_ids, int const num_pointsets, int collection_size, const char *timestep, int time_unit, int *field_id) |
| void | yac_cdef_field_mask (char const *field_name, int const component_id, int const *point_ids, int const *mask_ids, int const num_pointsets, int collection_size, const char *timestep, int time_unit, int *field_id) |
| void | yac_cenable_field_frac_mask (const char *comp_name, const char *grid_name, const char *field_name, double frac_mask_fallback_value) |
| void | yac_cenable_field_frac_mask_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name, double frac_mask_fallback_value) |
| void | yac_cdef_component_metadata (const char *comp_name, const char *metadata) |
| void | yac_cdef_component_metadata_instance (int yac_instance_id, const char *comp_name, const char *metadata) |
| void | yac_cdef_grid_metadata (const char *grid_name, const char *metadata) |
| void | yac_cdef_grid_metadata_instance (int yac_instance_id, const char *grid_name, const char *metadata) |
| void | yac_cdef_field_metadata (const char *comp_name, const char *grid_name, const char *field_name, const char *metadata) |
| void | yac_cdef_field_metadata_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name, const char *metadata) |
| void | yac_cget_action (int field_id, int *action) |
| const char * | yac_cget_field_datetime (int field_id) |
| void | yac_cupdate (int field_id) |
| void | yac_cget_ext_couple_config (int *ext_couple_config_id) |
| void | yac_cfree_ext_couple_config (int ext_couple_config_id) |
| void | yac_cset_ext_couple_config_weight_file (int ext_couple_config_id, char const *weight_file) |
| void | yac_cget_ext_couple_config_weight_file (int ext_couple_config_id, char const **weight_file) |
| void | yac_cset_ext_couple_config_weight_file_on_existing (int ext_couple_config_id, int weight_file_on_existing) |
| void | yac_cget_ext_couple_config_weight_file_on_existing (int ext_couple_config_id, int *weight_file_on_existing) |
| void | yac_cset_ext_couple_config_mapping_side (int ext_couple_config_id, int mapping_side) |
| void | yac_cget_ext_couple_config_mapping_side (int ext_couple_config_id, int *mapping_side) |
| void | yac_cset_ext_couple_config_scale_factor (int ext_couple_config_id, double scale_factor) |
| void | yac_cget_ext_couple_config_scale_factor (int ext_couple_config_id, double *scale_factor) |
| void | yac_cset_ext_couple_config_scale_summand (int ext_couple_config_id, double scale_summand) |
| void | yac_cget_ext_couple_config_scale_summand (int ext_couple_config_id, double *scale_summand) |
| void | yac_cset_ext_couple_config_src_mask_names (int ext_couple_config_id, size_t num_src_mask_names, char const *const *src_mask_names) |
| void | yac_cget_ext_couple_config_src_mask_names (int ext_couple_config_id, size_t *num_src_mask_names, char const *const **src_mask_names) |
| void | yac_cset_ext_couple_config_tgt_mask_name (int ext_couple_config_id, char const *tgt_mask_name) |
| void | yac_cget_ext_couple_config_tgt_mask_name (int ext_couple_config_id, char const **tgt_mask_name) |
| void | yac_cset_ext_couple_config_yaxt_exchanger_name (int ext_couple_config_id, char const *yaxt_exchanger_name) |
| void | yac_cget_ext_couple_config_yaxt_exchanger_name (int ext_couple_config_id, char const **yaxt_exchanger_name) |
| void | yac_cset_ext_couple_config_use_raw_exchange (int ext_couple_config_id, int use_raw_exchange) |
| void | yac_cget_ext_couple_config_use_raw_exchange (int ext_couple_config_id, int *use_raw_exchange) |
| void | yac_cset_ext_couple_config_collection_selection (int ext_couple_config_id, int collection_size, int const *collection_indices) |
| void | yac_cget_ext_couple_config_collection_selection (int ext_couple_config_id, int *collection_size, int **collection_indices) |
| void | yac_cdef_couple_custom_instance (int yac_instance_id, char const *src_comp_name, char const *src_grid_name, char const *src_field_name, char const *tgt_comp_name, char const *tgt_grid_name, char const *tgt_field_name, char const *coupling_timestep, int time_unit, int time_reduction, int interp_stack_config_id, int src_lag, int tgt_lag, int ext_couple_config_id) |
| void | yac_cdef_couple_custom (char const *src_comp_name, char const *src_grid_name, char const *src_field_name, char const *tgt_comp_name, char const *tgt_grid_name, char const *tgt_field_name, char const *coupling_timestep, int time_unit, int time_reduction, int interp_stack_config_id, int src_lag, int tgt_lag, int ext_couple_config_id) |
| void | yac_cdef_couple_instance (int yac_instance_id, char const *src_comp_name, char const *src_grid_name, char const *src_field_name, char const *tgt_comp_name, char const *tgt_grid_name, char const *tgt_field_name, char const *coupling_timestep, int time_unit, int time_reduction, int interp_stack_config_id, int src_lag, int tgt_lag) |
| void | yac_cdef_couple (char const *src_comp_name, char const *src_grid_name, char const *src_field_name, char const *tgt_comp_name, char const *tgt_grid_name, char const *tgt_field_name, char const *coupling_timestep, int time_unit, int time_reduction, int interp_stack_config_id, int src_lag, int tgt_lag) |
| void | yac_ccheck_field_dimensions (int field_id, int collection_size, int num_pointsets, int const *pointset_sizes) |
| void | yac_ccheck_src_field_buffer_size (int field_id, int collection_size, int src_field_buffer_size) |
| void | yac_ccheck_src_field_buffer_sizes (int field_id, int num_src_fields, int collection_size, int *src_field_buffer_sizes) |
| void | yac_cget_raw_interp_weights_data (int const field_id, double *frac_mask_fallback_value, double *scaling_factor, double *scaling_summand, size_t *num_fixed_values, double **fixed_values, size_t **num_tgt_per_fixed_value, size_t **tgt_idx_fixed, size_t *num_wgt_tgt, size_t **wgt_tgt_idx, size_t **num_src_per_tgt, double **weights, size_t **src_field_idx, size_t **src_idx, size_t *num_src_fields, size_t **src_field_buffer_sizes) |
| void | yac_cget_raw_interp_weights_data_csr (int const field_id, double *frac_mask_fallback_value, double *scaling_factor, double *scaling_summand, size_t *num_fixed_values, double **fixed_values, size_t **num_tgt_per_fixed_value, size_t **tgt_idx_fixed, size_t **src_indptr, double **weights, size_t **src_field_idx, size_t **src_idx, size_t *num_src_fields, size_t **src_field_buffer_sizes) |
| void | yac_cget_ (int const field_id, int const collection_size, double *recv_field, int *info, int *ierror) |
| void | yac_cget (int const field_id, int const collection_size, double **recv_field, int *info, int *ierror) |
| void | yac_cget_async_ (int const field_id, int const collection_size, double *recv_field, int *info, int *ierror) |
| void | yac_cget_async (int const field_id, int const collection_size, double **recv_field, int *info, int *ierror) |
| void | yac_cget_raw_ (int const field_id, int const collection_size, double *src_field_buffer, int *info, int *ierror) |
| void | yac_cget_raw (int const field_id, int const collection_size, double ***src_field_buffer, int *info, int *ierror) |
| void | yac_cget_raw_async_ (int const field_id, int const collection_size, double *src_field_buffer, int *info, int *ierror) |
| void | yac_cget_raw_async (int const field_id, int const collection_size, double ***src_field_buffer, int *info, int *ierror) |
| void | yac_cget_raw_frac_ (int const field_id, int const collection_size, double *src_field_buffer, double *src_frac_mask_buffer, int *info, int *ierror) |
| void | yac_cget_raw_frac (int const field_id, int const collection_size, double ***src_field_buffer, double ***src_frac_mask_buffer, int *info, int *ierror) |
| void | yac_cget_raw_frac_async_ (int const field_id, int const collection_size, double *src_field_buffer, double *src_frac_mask_buffer, int *info, int *ierror) |
| void | yac_cget_raw_frac_async (int const field_id, int const collection_size, double ***src_field_buffer, double ***src_frac_mask_buffer, int *info, int *ierror) |
| void | yac_cput_ (int const field_id, int const collection_size, double *send_field, int *info, int *ierror) |
| void | yac_cput (int const field_id, int const collection_size, double ***const send_field, int *info, int *ierror) |
| void | yac_cput_frac_ (int const field_id, int const collection_size, double *send_field, double *send_frac_mask, int *info, int *ierror) |
| void | yac_cput_frac (int const field_id, int const collection_size, double ***const send_field, double ***const send_frac_mask, int *info, int *ierror) |
| void | yac_cput_ptr_ (int const field_id, int const collection_size, double **send_field, int *info, int *ierror) |
| void | yac_cput_frac_ptr_ (int const field_id, int const collection_size, double **send_field, double **send_frac_mask, int *info, int *ierror) |
| void | yac_cexchange_ (int const send_field_id, int const recv_field_id, int const collection_size, double *send_field, double *recv_field, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange (int const send_field_id, int const recv_field_id, int const collection_size, double ***const send_field, double **recv_field, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_raw (int const send_field_id, int const recv_field_id, int const collection_size, double ***const send_field, double ***src_field_buffer, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_raw_ (int const send_field_id, int const recv_field_id, int const collection_size, double *send_field, double *src_field_buffer, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_raw_frac (int const send_field_id, int const recv_field_id, int const collection_size, double ***const send_field, double ***const send_frac_mask, double ***src_field_buffer, double ***src_frac_mask_buffer, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_raw_frac_ (int const send_field_id, int const recv_field_id, int const collection_size, double *send_field, double *send_frac_mask, double *src_field_buffer, double *src_frac_mask_buffer, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_frac_ (int const send_field_id, int const recv_field_id, int const collection_size, double *send_field, double *send_frac_mask, double *recv_field, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_frac (int const send_field_id, int const recv_field_id, int const collection_size, double ***const send_field, double ***const send_frac_mask, double **recv_field, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_ptr_ (int const send_field_id, int const recv_field_id, int const collection_size, double **send_field, double **recv_field, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_raw_ptr_ (int const send_field_id, int const recv_field_id, int const collection_size, double **send_field, double **src_field_buffer, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_frac_ptr_ (int const send_field_id, int const recv_field_id, int const collection_size, double **send_field, double **send_frac_mask, double **recv_field, int *send_info, int *recv_info, int *ierror) |
| void | yac_cexchange_raw_frac_ptr_ (int const send_field_id, int const recv_field_id, int const collection_size, double **send_field, double **send_frac_mask, double **src_field_buffer, double **src_frac_mask_buffer, int *send_info, int *recv_info, int *ierror) |
| void | yac_ctest (int field_id, int *flag) |
| void | yac_cwait (int field_id) |
| void | yac_csync_def (void) |
| void | yac_csync_def_instance (int yac_instance_id) |
| void | yac_cenddef (void) |
| void | yac_cenddef_instance (int yac_instance_id) |
| void | yac_cenddef_and_emit_config (int emit_flags, char **config) |
| void | yac_cenddef_and_emit_config_instance (int yac_instance_id, int emit_flags, char **config) |
| char * | yac_cget_start_datetime (void) |
| char * | yac_cget_start_datetime_instance (int yac_instance_id) |
| char * | yac_cget_end_datetime (void) |
| char * | yac_cget_end_datetime_instance (int yac_instance_id) |
| char * | yac_cget_version (void) |
| const char * | yac_cget_mpi_handshake_group_name (void) |
| Retrieve the MPI handshake group name used by YAC. | |
| int | yac_cget_nbr_comps (void) |
| int | yac_cget_nbr_comps_instance (int yac_instance_id) |
| int | yac_cget_nbr_grids () |
| int | yac_cget_nbr_grids_instance (int yac_instance_id) |
| int | yac_cget_comp_nbr_grids (const char *comp_name) |
| int | yac_cget_comp_nbr_grids_instance (int yac_instance_id, const char *comp_name) |
| int | yac_cget_nbr_fields (const char *comp_name, const char *grid_name) |
| int | yac_cget_nbr_fields_instance (int yac_instance_id, const char *comp_name, const char *grid_name) |
| void | yac_cget_comp_names (int nbr_comps, const char **comp_names) |
| void | yac_cget_comp_names_instance (int yac_instance_id, int nbr_comps, const char **comp_names) |
| void | yac_cget_grid_names (int nbr_grids, const char **grid_names) |
| void | yac_cget_grid_names_instance (int yac_instance_id, int nbr_grids, const char **grid_names) |
| void | yac_cget_comp_grid_names (const char *comp_name, int nbr_grids, const char **grid_names) |
| void | yac_cget_comp_grid_names_instance (int yac_instance_id, const char *comp_name, int nbr_grids, const char **grid_names) |
| void | yac_cget_field_names (const char *comp_name, const char *grid_name, int nbr_fields, const char **field_names) |
| void | yac_cget_field_names_instance (int yac_instance_id, const char *comp_name, const char *grid_name, int nbr_fields, const char **field_names) |
| const char * | yac_cget_component_name_from_field_id (int field_id) |
| const char * | yac_cget_grid_name_from_field_id (int field_id) |
| const char * | yac_cget_field_name_from_field_id (int field_id) |
| const char * | yac_cget_timestep_from_field_id (int field_id) |
| int | yac_cget_collection_size_from_field_id (int field_id) |
| int | yac_cget_role_from_field_id (int field_id) |
| int | yac_cget_field_is_defined (const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_is_defined_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_id (const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_id_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| const char * | yac_cget_component_metadata (const char *comp_name) |
| const char * | yac_cget_component_metadata_instance (int yac_instance_id, const char *comp_name) |
| const char * | yac_cget_grid_metadata (const char *grid_name) |
| const char * | yac_cget_grid_metadata_instance (int yac_instance_id, const char *grid_name) |
| const char * | yac_cget_field_metadata (const char *comp_name, const char *grid_name, const char *field_name) |
| const char * | yac_cget_field_metadata_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| const char * | yac_cget_field_timestep (const char *comp_name, const char *grid_name, const char *field_name) |
| const char * | yac_cget_field_timestep_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| double | yac_cget_field_frac_mask_fallback_value (const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_collection_size (const char *comp_name, const char *grid_name, const char *field_name) |
| double | yac_cget_field_frac_mask_fallback_value_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_collection_size_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_role (const char *comp_name, const char *grid_name, const char *field_name) |
| int | yac_cget_field_role_instance (int yac_instance_id, const char *comp_name, const char *grid_name, const char *field_name) |
| void | yac_cget_field_source (const char *tgt_comp_name, const char *tgt_grid_name, const char *tgt_field_name, const char **src_comp_name, const char **src_grid_name, const char **src_field_name) |
| void | yac_cget_field_source_instance (int yac_instance_id, const char *tgt_comp_name, const char *tgt_grid_name, const char *tgt_field_name, const char **src_comp_name, const char **src_grid_name, const char **src_field_name) |
| void | yac_abort (MPI_Comm comm, const char *msg, const char *source, int line) __attribute__((noreturn)) |
| void | yac_abort_message (char const *msg, const char *source, int line) |
| void | yac_restore_default_abort_handler (void) |
| void | yac_set_abort_handler (yac_abort_func custom_abort) |
| yac_abort_func | yac_get_abort_handler (void) |
| yac_abort_func | yac_get_default_abort_handler (void) |
| void | yac_set_default_comm (MPI_Comm comm) |
| size_t | yac_cget_grid_size (int location, int grid_id) |
| void | yac_ccompute_grid_cell_areas (int grid_id, double *cell_areas) |
| size_t | yac_cget_points_size (int points_id) |
| void | yac_cget_ext_spmap_config (int *ext_spmap_config_id) |
| void | yac_cfree_ext_spmap_config (int ext_spmap_config_id) |
| void | yac_cset_ext_spmap_config_spread_distance (int ext_spmap_config_id, double spread_distance) |
| void | yac_cset_ext_spmap_config_max_search_distance (int ext_spmap_config_id, double max_search_distance) |
| void | yac_cset_ext_spmap_config_weight_type (int ext_spmap_config_id, int weight_type) |
| void | yac_cset_ext_spmap_config_scale_type (int ext_spmap_config_id, int scale_type) |
| void | yac_cset_ext_spmap_config_src_cell_area_config_yac (int ext_spmap_config_id, double sphere_radius) |
| void | yac_cset_ext_spmap_config_tgt_cell_area_config_yac (int ext_spmap_config_id, double sphere_radius) |
| void | yac_cset_ext_spmap_config_src_cell_area_config_file (int ext_spmap_config_id, char const *filename, char const *varname, int min_global_id) |
| void | yac_cset_ext_spmap_config_tgt_cell_area_config_file (int ext_spmap_config_id, char const *filename, char const *varname, int min_global_id) |
| void | yac_cget_spmap_overwrite_config (int *spmap_overwrite_config_id) |
| void | yac_cfree_spmap_overwrite_config (int spmap_overwrite_config_id) |
| void | yac_cset_spmap_overwrite_config_src_point_selection_bnd_circle (int spmap_overwrite_config_id, double center_lon, double center_lat, double inc_angle) |
| void | yac_cset_spmap_overwrite_config_spread_distance (int spmap_overwrite_config_id, double spread_distance) |
| void | yac_cset_spmap_overwrite_config_max_search_distance (int spmap_overwrite_config_id, double max_search_distance) |
| void | yac_cset_spmap_overwrite_config_weight_type (int spmap_overwrite_config_id, int weight_type) |
| void | yac_cget_interp_stack_config (int *interp_stack_config_id) |
| void | yac_cfree_interp_stack_config (int interp_stack_config_id) |
| void | yac_cadd_interp_stack_config_average (int interp_stack_config_id, int reduction_type, int partial_coverage) |
| void | yac_cadd_interp_stack_config_ncc (int interp_stack_config_id, int weight_type, int partial_coverage) |
| void | yac_cadd_interp_stack_config_nnn (int interp_stack_config_id, int type, size_t n, double max_search_distance, double scale) |
| void | yac_cadd_interp_stack_config_rbf (int interp_stack_config_id, size_t n, double max_search_distance, double scale) |
| void | yac_cadd_interp_stack_config_conservative (int interp_stack_config_id, int order, int enforced_conserv, int partial_coverage, int normalisation) |
| void | yac_cadd_interp_stack_config_spmap (int interp_stack_config_id, double spread_distance, double max_search_distance, int weight_type, int scale_type, double src_sphere_radius, char const *src_filename, char const *src_varname, int src_min_global_id, double tgt_sphere_radius, char const *tgt_filename, char const *tgt_varname, int tgt_min_global_id) |
| void | yac_cadd_interp_stack_config_spmap_ext (int interp_stack_config_id, int ext_spmap_config_id, int *spmap_overwrite_config_ids, int spmap_overwrite_config_count) |
| void | yac_cadd_interp_stack_config_hcsbb (int interp_stack_config_id) |
| void | yac_cadd_interp_stack_config_user_file (int interp_stack_config_id, char const *filename) |
| void | yac_cadd_interp_stack_config_user_file_2 (int interp_stack_config_id, char const *filename, int on_missing_file, int on_success) |
| void | yac_cadd_interp_stack_config_fixed (int interp_stack_config_id, double value) |
| void | yac_cadd_interp_stack_config_check (int interp_stack_config_id, char const *constructor_key, char const *do_search_key) |
| void | yac_cadd_interp_stack_config_creep (int interp_stack_config_id, int creep_distance) |
| void | yac_cadd_interp_stack_config_user_callback (int interp_stack_config_id, char const *func_compute_weights_key) |
| void | yac_cadd_compute_weights_callback (yac_func_compute_weights compute_weights_callback, void *user_data, char const *key) |
| void | yac_cget_interp_stack_config_from_string_yaml (char const *interp_stack_config, int *interp_stack_config_id) |
| void | yac_cget_interp_stack_config_from_string_json (char const *interp_stack_config, int *interp_stack_config_id) |
| #define TYPEDEF_YAC_FUNC_COMPUTE_WEIGHTS |
method signature for weight computation function used by User callback interpolation
If the field value of a target point, whose weights have been computed by this routine, is to be computed on the source process at which this routine was called, YAC would use the weights as follows (it is assumed that all required source points are available at this process):
If one or more source points associated to the global ids return by this routine are not actually available at this process, YAC will ensure that the respective value will be available for the interpolation.
| [in] | tgt_coords | 3D coordinates of the target point |
| [in] | src_cell_id | global id of the source cell matching the target point |
| [in] | src_cell_idx | (zero based) index of the source cell matching the target point |
| [out] | global_results_points | global ids of source points to be used for the interpolation of the target point |
| [out] | result_weights | weights to be used for the interpolation of the target point |
| [out] | result_count | number of source points to be used for the interpolation of the target point per pointset |
| [in] | user_data | user_data pointer provided to yac_cadd_compute_weights_callback |
| typedef void(* yac_abort_func) (MPI_Comm comm, const char *msg, const char *source, int line) __attribute__((noreturn)) |
| typedef void(* yac_func_compute_weights) (double const tgt_coords[3], int src_cell_id, size_t src_cell_idx, int const **global_results_points, double **result_weights, size_t *result_count, void *user_data) |
| void yac_abort | ( | MPI_Comm | comm, |
| const char * | msg, | ||
| const char * | source, | ||
| int | line ) |
Calls the currently set abort handler (yac_abort_default by default)
| [in] | comm | MPI communicator used to call MPI_Abort |
| [in] | msg | message text to print |
| [in] | source | string describing source file name |
| [in] | line | line number of caller |

| void yac_abort_message | ( | char const * | msg, |
| const char * | source, | ||
| int | line ) |
Call the yac_abort function (providing the default communicator for the comm argument).
| msg | message text to print |
| source | string describing source file name |
| line | line number of caller |
| void yac_cadd_compute_weights_callback | ( | yac_func_compute_weights | compute_weights_callback, |
| void * | user_data, | ||
| char const * | key ) |
registers a callback routine for the computation of weights by the interpolation method user_callback
| [in] | compute_weights_callback | pointer to a weight computation routine |
| [in] | user_data | data pointer that will be passed to compute_weights_callback |
| [in] | key | key for identifying the callback routine |
Definition at line 5867 of file yac.c.

| void yac_cadd_interp_stack_config_average | ( | int | interp_stack_config_id, |
| int | reduction_type, | ||
| int | partial_coverage ) |
adds average interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | reduction_type | reduction type |
| [in] | partial_coverage | allow partial coverage |
Definition at line 5171 of file yac.c.


| void yac_cadd_interp_stack_config_check | ( | int | interp_stack_config_id, |
| char const * | constructor_key, | ||
| char const * | do_search_key ) |
adds fixed interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | constructor_key | key provided to yac_interp_method_check_add_constructor_callback for a constructor callback routine |
| [in] | do_search_key | key provided to yac_interp_method_check_add_do_search_callback for a do_search callback routine |
Definition at line 5832 of file yac.c.


| void yac_cadd_interp_stack_config_conservative | ( | int | interp_stack_config_id, |
| int | order, | ||
| int | enforced_conserv, | ||
| int | partial_coverage, | ||
| int | normalisation ) |
adds conservative interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | order | first or second order |
| [in] | enforced_conserv | enforce local conservation |
| [in] | partial_coverage | allow partial coverage |
| [in] | normalisation | normalisation type |
Definition at line 5241 of file yac.c.


| void yac_cadd_interp_stack_config_creep | ( | int | interp_stack_config_id, |
| int | creep_distance ) |
| void yac_cadd_interp_stack_config_fixed | ( | int | interp_stack_config_id, |
| double | value ) |
| void yac_cadd_interp_stack_config_hcsbb | ( | int | interp_stack_config_id | ) |
| void yac_cadd_interp_stack_config_ncc | ( | int | interp_stack_config_id, |
| int | weight_type, | ||
| int | partial_coverage ) |
adds nearest corner cells interpolation to the bottom of a interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | weight_type | reduction type |
| [in] | partial_coverage | allow partial coverage |
Definition at line 5190 of file yac.c.


| void yac_cadd_interp_stack_config_nnn | ( | int | interp_stack_config_id, |
| int | type, | ||
| size_t | n, | ||
| double | max_search_distance, | ||
| double | scale ) |
adds n-nearest-neighbour interpolation to the bottom of a interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | type | reduction type |
| [in] | n | number of nearest neighbour points |
| [in] | max_search_distance | maximum search distance for each point |
| [in] | scale | scale parameter required by some reduction types |
Definition at line 5208 of file yac.c.


| void yac_cadd_interp_stack_config_rbf | ( | int | interp_stack_config_id, |
| size_t | n, | ||
| double | max_search_distance, | ||
| double | scale ) |
adds rbf interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | n | number of nearest neighbour points |
| [in] | max_search_distance | maximum search distance for each point |
| [in] | scale | scale parameter |
Definition at line 5229 of file yac.c.


| void yac_cadd_interp_stack_config_spmap | ( | int | interp_stack_config_id, |
| double | spread_distance, | ||
| double | max_search_distance, | ||
| int | weight_type, | ||
| int | scale_type, | ||
| double | src_sphere_radius, | ||
| char const * | src_filename, | ||
| char const * | src_varname, | ||
| int | src_min_global_id, | ||
| double | tgt_sphere_radius, | ||
| char const * | tgt_filename, | ||
| char const * | tgt_varname, | ||
| int | tgt_min_global_id ) |
adds source point mapping interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | spread_distance | spread distance (in rad) |
| [in] | max_search_distance | maximum search distance (in rad) |
| [in] | weight_type | reduction type |
| [in] | scale_type | scaling type |
| [in] | src_sphere_radius | sphere radius used for source cell area computation |
| [in] | src_filename | netCDF file contain the source cell areas |
| [in] | src_varname | variable name of source cell areas |
| [in] | src_min_global_id | minimum global id used to map global cell ids to values in the netCDF file |
| [in] | tgt_sphere_radius | sphere radius used for target cell area computation |
| [in] | tgt_filename | netCDF file contain the target cell areas |
| [in] | tgt_varname | variable name of target cell areas |
| [in] | tgt_min_global_id | minimum global id used to map global cell ids to values in the netCDF file |
Definition at line 5545 of file yac.c.


| void yac_cadd_interp_stack_config_spmap_ext | ( | int | interp_stack_config_id, |
| int | ext_spmap_config_id, | ||
| int * | spmap_overwrite_config_ids, | ||
| int | spmap_overwrite_config_count ) |
Adds source point mapping interpolation with extended configuration options to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | ext_spmap_config_id | main configuration |
| [in] | spmap_overwrite_config_ids | overwrite configurations |
| [in] | spmap_overwrite_config_count | number of overwrite configurations |
Definition at line 5649 of file yac.c.


| void yac_cadd_interp_stack_config_user_callback | ( | int | interp_stack_config_id, |
| char const * | func_compute_weights_key ) |
adds user callback interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | func_compute_weights_key | key provided to yac_cadd_compute_weights_callback for a compute_weights callback routine |
Definition at line 5854 of file yac.c.

| void yac_cadd_interp_stack_config_user_file | ( | int | interp_stack_config_id, |
| char const * | filename ) |
adds user weight file interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | filename | weight file name |
Definition at line 5813 of file yac.c.

| void yac_cadd_interp_stack_config_user_file_2 | ( | int | interp_stack_config_id, |
| char const * | filename, | ||
| int | on_missing_file, | ||
| int | on_success ) |
adds user weight file interpolation to the bottom of an interpolation stack
| [in] | interp_stack_config_id | interpolation stack |
| [in] | filename | weight file name |
| [in] | on_missing_file | specifies how YAC should behave if no file was found |
| [in] | on_success | specifies how YAC should behave in case a weight file was successfully read |
Definition at line 5787 of file yac.c.


| void yac_ccheck_field_dimensions | ( | int | field_id, |
| int | collection_size, | ||
| int | num_pointsets, | ||
| int const * | pointset_sizes ) |
Checks whether the field dimensions match with field definition and aborts if there is a mismatch
| [in] | field_id | |
| [in] | collection_size | collection size |
| [in] | num_pointsets | number of pointsets |
| [in] | pointset_sizes | size of each pointset |
Definition at line 2045 of file yac.c.


| void yac_ccheck_src_field_buffer_size | ( | int | field_id, |
| int | collection_size, | ||
| int | src_field_buffer_size ) |
Checks whether the source field buffer size matches the one expected by YAC for this field and abort if there is a mismatch
| [in] | field_id | |
| [in] | collection_size | collection size |
| [in] | src_field_buffer_size | source buffer size (SUM(src_field_buffer_sizes(:))) |
Definition at line 2106 of file yac.c.

| void yac_ccheck_src_field_buffer_sizes | ( | int | field_id, |
| int | num_src_fields, | ||
| int | collection_size, | ||
| int * | src_field_buffer_sizes ) |
Checks whether the source field buffer sizes matches the one expected by YAC for this field and abort if there is a mismatch
| [in] | field_id | |
| [in] | num_src_fields | number of source fields |
| [in] | collection_size | collection size |
| [in] | src_field_buffer_sizes | source field buffer sizes |
Definition at line 2144 of file yac.c.

| void yac_ccleanup | ( | ) |
Clean-up default YAC instance (see Restarting YAC)
Frees all memory associated with the default YAC instance.
Definition at line 711 of file yac.c.

| void yac_ccleanup_instance | ( | int | yac_instance_id | ) |
Clean-up a YAC instance (see Restarting YAC)
Frees all memory associated with the provided YAC instance.
| [in] | yac_instance_id | id of the YAC instance to be cleaned up |
Definition at line 703 of file yac.c.


| void yac_ccompute_grid_cell_areas | ( | int | grid_id, |
| double * | cell_areas ) |
| void yac_cdef_calendar | ( | int | calendar | ) |
Defines the calendar of the default instance
| [in] | calendar | The calendar |
Definition at line 769 of file yac.c.

| void yac_cdef_comp | ( | const char * | comp_name, |
| int * | comp_id ) |
Elementary definition of the component for the default YAC instance
| [in] | comp_name | name of the component |
| [out] | comp_id | component Id |
yac_cpredef_comp. Definition at line 1013 of file yac.c.


| void yac_cdef_comp_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| int * | comp_id ) |
Elementary definition of the component.
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_name | name of the component |
| [out] | comp_id | component Id |
yac_cpredef_comp_instance. Definition at line 1007 of file yac.c.


| void yac_cdef_component_metadata | ( | const char * | comp_name, |
| const char * | metadata ) |
| void yac_cdef_component_metadata_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | metadata ) |
| void yac_cdef_comps | ( | const char ** | comp_names, |
| int | num_comps, | ||
| int * | comp_ids ) |
Elementary definition of the components for the default YAC instance
| [in] | comp_names | names of the components |
| [in] | num_comps | number of components |
| [out] | comp_ids | component Id's |
Definition at line 999 of file yac.c.


| void yac_cdef_comps_instance | ( | int | yac_instance_id, |
| const char ** | comp_names, | ||
| int | num_comps, | ||
| int * | comp_ids ) |
Elementary definition of the components.
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_names | names of the components |
| [in] | num_comps | number of components |
| [out] | comp_ids | component Id's |
Definition at line 974 of file yac.c.


| void yac_cdef_couple | ( | char const * | src_comp_name, |
| char const * | src_grid_name, | ||
| char const * | src_field_name, | ||
| char const * | tgt_comp_name, | ||
| char const * | tgt_grid_name, | ||
| char const * | tgt_field_name, | ||
| char const * | coupling_timestep, | ||
| int | time_unit, | ||
| int | time_reduction, | ||
| int | interp_stack_config_id, | ||
| int | src_lag, | ||
| int | tgt_lag ) |
Define couple in the default YAC instance
| [in] | src_comp_name | component name of the source component |
| [in] | src_grid_name | grid name of the source grid |
| [in] | src_field_name | field name of the source field |
| [in] | tgt_comp_name | component name of the target component |
| [in] | tgt_grid_name | grid name of the target grid |
| [in] | tgt_field_name | field name of the target field |
| [in] | coupling_timestep | time step for the coupling given in the defined timestep unit |
| [in] | time_unit | unit of coupling_timestep argument |
| [in] | time_reduction | type for reducing multiple timesteps |
| [in] | interp_stack_config_id | id of the interpolation stack config to be used |
| [in] | src_lag | lag for this couple on the source component |
| [in] | tgt_lag | lag for this couple on the target component |
Definition at line 1951 of file yac.c.


| void yac_cdef_couple_custom | ( | char const * | src_comp_name, |
| char const * | src_grid_name, | ||
| char const * | src_field_name, | ||
| char const * | tgt_comp_name, | ||
| char const * | tgt_grid_name, | ||
| char const * | tgt_field_name, | ||
| char const * | coupling_timestep, | ||
| int | time_unit, | ||
| int | time_reduction, | ||
| int | interp_stack_config_id, | ||
| int | src_lag, | ||
| int | tgt_lag, | ||
| int | ext_couple_config_id ) |
Define couple in the default YAC instance using an extended coupling configuration
| [in] | src_comp_name | component name of the source component |
| [in] | src_grid_name | grid name of the source grid |
| [in] | src_field_name | field name of the source field |
| [in] | tgt_comp_name | component name of the target component |
| [in] | tgt_grid_name | grid name of the target grid |
| [in] | tgt_field_name | field name of the target field |
| [in] | coupling_timestep | time step for the coupling given in the defined timestep unit |
| [in] | time_unit | unit of coupling_timestep argument |
| [in] | time_reduction | type for reducing multiple timesteps |
| [in] | interp_stack_config_id | id of the interpolation stack config to be used |
| [in] | src_lag | lag for this couple on the source component |
| [in] | tgt_lag | lag for this couple on the target component |
| [in] | ext_couple_config_id | extended coupling configuration |
Definition at line 1919 of file yac.c.

| void yac_cdef_couple_custom_instance | ( | int | yac_instance_id, |
| char const * | src_comp_name, | ||
| char const * | src_grid_name, | ||
| char const * | src_field_name, | ||
| char const * | tgt_comp_name, | ||
| char const * | tgt_grid_name, | ||
| char const * | tgt_field_name, | ||
| char const * | coupling_timestep, | ||
| int | time_unit, | ||
| int | time_reduction, | ||
| int | interp_stack_config_id, | ||
| int | src_lag, | ||
| int | tgt_lag, | ||
| int | ext_couple_config_id ) |
Define couple using an extended coupling configuration
| [in] | yac_instance_id | id of the YAC instance for that the couple should be defined |
| [in] | src_comp_name | component name of the source component |
| [in] | src_grid_name | grid name of the source grid |
| [in] | src_field_name | field name of the source field |
| [in] | tgt_comp_name | component name of the target component |
| [in] | tgt_grid_name | grid name of the target grid |
| [in] | tgt_field_name | field name of the target field |
| [in] | coupling_timestep | time step for the coupling |
| [in] | time_unit | unit of coupling_timestep argument |
| [in] | time_reduction | type for reducing multiple timesteps |
| [in] | interp_stack_config_id | id of the interpolation stack config to be used |
| [in] | src_lag | lag for this couple on the source component |
| [in] | tgt_lag | lag for this couple on the target component |
| [in] | ext_couple_config_id | extended coupling configuration |
Definition at line 1904 of file yac.c.


| void yac_cdef_couple_instance | ( | int | yac_instance_id, |
| char const * | src_comp_name, | ||
| char const * | src_grid_name, | ||
| char const * | src_field_name, | ||
| char const * | tgt_comp_name, | ||
| char const * | tgt_grid_name, | ||
| char const * | tgt_field_name, | ||
| char const * | coupling_timestep, | ||
| int | time_unit, | ||
| int | time_reduction, | ||
| int | interp_stack_config_id, | ||
| int | src_lag, | ||
| int | tgt_lag ) |
Define couple
| [in] | yac_instance_id | id of the YAC instance for that the couple should be defined |
| [in] | src_comp_name | component name of the source component |
| [in] | src_grid_name | grid name of the source grid |
| [in] | src_field_name | field name of the source field |
| [in] | tgt_comp_name | component name of the target component |
| [in] | tgt_grid_name | grid name of the target grid |
| [in] | tgt_field_name | field name of the target field |
| [in] | coupling_timestep | time step for the coupling |
| [in] | time_unit | unit of coupling_timestep argument |
| [in] | time_reduction | type for reducing multiple timesteps |
| [in] | interp_stack_config_id | id of the interpolation stack config to be used |
| [in] | src_lag | lag for this couple on the source component |
| [in] | tgt_lag | lag for this couple on the target component |
Definition at line 1934 of file yac.c.


| void yac_cdef_datetime | ( | const char * | start_datetime, |
| const char * | end_datetime ) |
| void yac_cdef_datetime_instance | ( | int | yac_instance_id, |
| const char * | start_datetime, | ||
| const char * | end_datetime ) |
Definition of job start and end datetime
| [in] | yac_instance_id | id of the YAC instance |
| [in] | start_datetime | calendar job start datetime |
| [in] | end_datetime | calendar job end datetime |
Definition at line 752 of file yac.c.


| void yac_cdef_field | ( | char const * | field_name, |
| int const | component_id, | ||
| int const * | point_ids, | ||
| int const | num_pointsets, | ||
| int | collection_size, | ||
| const char * | timestep, | ||
| int | time_unit, | ||
| int * | field_id ) |
Definition of the coupling field (using default mask, if defined)
| [in] | field_name | character string providing the name of the coupling field |
| [in] | component_id | component ID |
| [in] | point_ids | point IDs |
| [in] | num_pointsets | number of pointsets per grid |
| [in] | collection_size | collection size |
| [in] | timestep | timestep |
| [in] | time_unit | time unit |
| [out] | field_id | returned field_id which has to be used to identify coupling fields in yac_cput and yac_cget. |
Definition at line 1396 of file yac.c.


| void yac_cdef_field_mask | ( | char const * | field_name, |
| int const | component_id, | ||
| int const * | point_ids, | ||
| int const * | mask_ids, | ||
| int const | num_pointsets, | ||
| int | collection_size, | ||
| const char * | timestep, | ||
| int | time_unit, | ||
| int * | field_id ) |
Definition of the coupling field
| [in] | field_name | character string providing the name of the coupling field |
| [in] | component_id | component ID |
| [in] | point_ids | point IDs |
| [in] | mask_ids | mask IDs |
| [in] | num_pointsets | number of pointsets per grid |
| [in] | collection_size | collection size |
| [in] | timestep | timestep |
| [in] | time_unit | |
| [out] | field_id | returned field_id which has to be used to identify coupling fields in yac_cput and yac_cget. |
Definition at line 1323 of file yac.c.


| void yac_cdef_field_metadata | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name, | ||
| const char * | metadata ) |
| void yac_cdef_field_metadata_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name, | ||
| const char * | metadata ) |
| void yac_cdef_grid_cloud | ( | const char * | grid_name, |
| int | nbr_points, | ||
| double * | x_points, | ||
| double * | y_points, | ||
| int * | grid_id ) |
Definition of grid consisting of a cloud of points
| [in] | grid_name | name of the grid |
| [in] | nbr_points | number of points |
| [in] | x_points | array of point longitudes, in radians |
| [in] | y_points | array of point latitudes, in radians |
| [out] | grid_id | id of generated grid |
Definition at line 4953 of file yac.c.

| void yac_cdef_grid_curve2d | ( | const char * | grid_name, |
| int | nbr_vertices[2], | ||
| int | cyclic[2], | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| int * | grid_id ) |
Definition of a 2d curvilinear grid
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | 2d array containing the number of vertices in each dimension |
| [in] | cyclic | 2d array containing information about cyclic behaviour in each dimension |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [out] | grid_id | id of generated grid |
Definition at line 4849 of file yac.c.


| void yac_cdef_grid_metadata | ( | const char * | grid_name, |
| const char * | metadata ) |
| void yac_cdef_grid_metadata_instance | ( | int | yac_instance_id, |
| const char * | grid_name, | ||
| const char * | metadata ) |
| void yac_cdef_grid_reg2d | ( | const char * | grid_name, |
| int | nbr_vertices[2], | ||
| int | cyclic[2], | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| int * | grid_id ) |
Definition of a 2d regular grid
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | 2d array containing the number of vertices in each dimension |
| [in] | cyclic | 2d array containing information about cyclic behaviour in each dimension |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [out] | grid_id | id of generated grid |
Definition at line 4831 of file yac.c.


| void yac_cdef_grid_reg2d_rot | ( | const char * | grid_name, |
| int | nbr_vertices[2], | ||
| int | cyclic[2], | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| double | x_north_pole, | ||
| double | y_north_pole, | ||
| int * | grid_id ) |
Definition of a rotated 2d regular grid
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | 2d array containing the number of vertices in each dimension |
| [in] | cyclic | 2d array containing information about cyclic behaviour in each dimension |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [in] | x_north_pole | longitude of the rotated north pole, in radians |
| [in] | y_north_pole | longitude of the rotated north pole, in radians |
| [out] | grid_id | id of generated grid |
Definition at line 4969 of file yac.c.

| void yac_cdef_grid_unstruct | ( | const char * | grid_name, |
| int | nbr_vertices, | ||
| int | nbr_cells, | ||
| int * | num_vertices_per_cell, | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| int * | cell_to_vertex, | ||
| int * | grid_id ) |
Definition of an unstructured grid
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | number of vertices |
| [in] | nbr_cells | number of cells |
| [in] | num_vertices_per_cell | array containing the number of vertices for each cell |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [in] | cell_to_vertex | connectivity of vertices belonging to cells (the vertex indices per cell have to be in clockwise or counterclockwise ordering) |
| [out] | grid_id | id of generated grid |
Definition at line 4867 of file yac.c.


| void yac_cdef_grid_unstruct_edge | ( | const char * | grid_name, |
| int | nbr_vertices, | ||
| int | nbr_cells, | ||
| int | nbr_edges, | ||
| int * | num_edges_per_cell, | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| int * | cell_to_edge, | ||
| int * | edge_to_vertex, | ||
| int * | grid_id ) |
Definition of an unstructured grid with explicit edge definition
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | number of vertices |
| [in] | nbr_cells | number of cells |
| [in] | nbr_edges | number of edges |
| [in] | num_edges_per_cell | array containing the number of edges for each cell |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [in] | cell_to_edge | connectivity of edges belonging to cells (the edge indices per cell have to be in clockwise or counterclockwise ordering) |
| [in] | edge_to_vertex | connectivity of vertices belonging to edges |
| [out] | grid_id | id of generated grid |
Definition at line 4909 of file yac.c.


| void yac_cdef_grid_unstruct_edge_ll | ( | const char * | grid_name, |
| int | nbr_vertices, | ||
| int | nbr_cells, | ||
| int | nbr_edges, | ||
| int * | num_edges_per_cell, | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| int * | cell_to_edge, | ||
| int * | edge_to_vertex, | ||
| int * | grid_id ) |
Definition of an unstructured grid with lon-lat edges with explicit edge definition
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | number of vertices |
| [in] | nbr_cells | number of cells |
| [in] | nbr_edges | number of edges |
| [in] | num_edges_per_cell | array containing the number of edges for each cell |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [in] | cell_to_edge | connectivity of edges belonging to cells (the edge indices per cell have to be in clockwise or counterclockwise ordering) |
| [in] | edge_to_vertex | connectivity of vertices belonging to edges |
| [out] | grid_id | id of generated grid |
Definition at line 4931 of file yac.c.


| void yac_cdef_grid_unstruct_ll | ( | const char * | grid_name, |
| int | nbr_vertices, | ||
| int | nbr_cells, | ||
| int * | num_vertices_per_cell, | ||
| double * | x_vertices, | ||
| double * | y_vertices, | ||
| int * | cell_to_vertex, | ||
| int * | grid_id ) |
Definition of an unstructured grid with lon-lat edges
| [in] | grid_name | name of the grid |
| [in] | nbr_vertices | number of vertices |
| [in] | nbr_cells | number of cells |
| [in] | num_vertices_per_cell | array containing the number of vertices for each cell |
| [in] | x_vertices | array of vertex longitudes, in radians |
| [in] | y_vertices | array of vertex latitudes, in radians |
| [in] | cell_to_vertex | connectivity of vertices belonging to cells (the vertex indices per cell have to be in clockwise or counterclockwise ordering) |
| [out] | grid_id | id of generated grid |
Definition at line 4888 of file yac.c.


| void yac_cdef_mask | ( | int const | grid_id, |
| int const | nbr_points, | ||
| int const | location, | ||
| int const * | is_valid, | ||
| int * | mask_id ) |
define a mask for a grid
| [in] | grid_id | grid ID |
| [in] | nbr_points | number of points |
| [in] | location | cell/vertex/edge |
| [in] | is_valid | 0 for points that are masked out, 1 for valid points |
| [out] | mask_id | returned handle to the mask struct |
Definition at line 1295 of file yac.c.


| void yac_cdef_mask_named | ( | int const | grid_id, |
| int const | nbr_points, | ||
| int const | location, | ||
| int const * | is_valid, | ||
| char const * | name, | ||
| int * | mask_id ) |
define a named mask for a grid
| [in] | grid_id | grid ID |
| [in] | nbr_points | number of points |
| [in] | location | cell/vertex/edge |
| [in] | is_valid | 0 for points that are masked out, 1 for valid points |
| [in] | name | name of the mask |
| [out] | mask_id | returned handle to the mask struct |
Definition at line 1274 of file yac.c.


| void yac_cdef_points_curve2d | ( | int const | grid_id, |
| int const * | nbr_points, | ||
| int const | location, | ||
| double const * | x_points, | ||
| double const * | y_points, | ||
| int * | point_id ) |
Definition of a set of points for 2D curvilinear grids.
| [in] | grid_id | handle to the grid struct |
| [in] | nbr_points | number of points |
| [in] | location | location of points |
| [in] | x_points | array of point longitudes, in radians |
| [in] | y_points | array of point latitudes, in radians |
| [out] | point_id | returned handle to the points struct |
Definition at line 1142 of file yac.c.

| void yac_cdef_points_reg2d | ( | int const | grid_id, |
| int const * | nbr_points, | ||
| int const | location, | ||
| double const * | x_points, | ||
| double const * | y_points, | ||
| int * | point_id ) |
Definition of a set of points for 2D regular grids.
| [in] | grid_id | handle to the grid struct |
| [in] | nbr_points | number of points |
| [in] | location | location of points |
| [in] | x_points | array of point longitudes, in radians |
| [in] | y_points | array of point latitudes, in radians |
| [out] | point_id | returned handle to the points struct |
Definition at line 1103 of file yac.c.


| void yac_cdef_points_reg2d_rot | ( | int const | grid_id, |
| int const * | nbr_points, | ||
| int const | location, | ||
| double const * | x_points, | ||
| double const * | y_points, | ||
| double | x_north_pole, | ||
| double | y_north_pole, | ||
| int * | point_id ) |
Definition of a set of points for 2D regular rotated grid.
| [in] | grid_id | handle to the grid struct |
| [in] | nbr_points | number of points |
| [in] | location | location of points |
| [in] | x_points | array of point longitudes, in radians |
| [in] | y_points | array of point latitudes, in radians |
| [in] | x_north_pole | longitude of the north pole, in radians |
| [in] | y_north_pole | latitude of the north pole, in radians |
| [out] | point_id | returned handle to the points struct |
Definition at line 1210 of file yac.c.

| void yac_cdef_points_unstruct | ( | int const | grid_id, |
| int const | nbr_points, | ||
| int const | location, | ||
| double const * | x_points, | ||
| double const * | y_points, | ||
| int * | point_id ) |
Definition of a set of points for 2D unstructured grids.
| [in] | grid_id | handle to the grid struct |
| [in] | nbr_points | number of points |
| [in] | location | location of points |
| [in] | x_points | array of point longitudes, in radians |
| [in] | y_points | array of point latitudes, in radians |
| [out] | point_id | returned handle to the points struct |
Definition at line 1181 of file yac.c.


| void yac_cenable_field_frac_mask | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name, | ||
| double | frac_mask_fallback_value ) |
Enables fractional masking for a coupling field and sets the fallback value
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name | |
| [in] | frac_mask_fallback_value | fractional mask fallback value |
Definition at line 1439 of file yac.c.

| void yac_cenable_field_frac_mask_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name, | ||
| double | frac_mask_fallback_value ) |
Enables fractional masking for a coupling field and sets the fallback value
| [in] | yac_instance_id | |
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name | |
| [in] | frac_mask_fallback_value | fractional mask fallback value |
Definition at line 1427 of file yac.c.


| void yac_cenddef | ( | void | ) |
| void yac_cenddef_and_emit_config | ( | int | emit_flags, |
| char ** | config ) |
End of the definition phase for the default YAC instance, invocation of the search and setup of internal data structures for coupling (communication matrices and interpolation weights). In addition, the collected coupling configuration from all processes is emitted.
| [in] | emit_flags | flags for configuring the generated coupling configuration output (YAC_YAML_EMITTER_DEFAULT or YAC_YAML_EMITTER_JSON) |
| [out] | config | coupling configuration |
Definition at line 4415 of file yac.c.

| void yac_cenddef_and_emit_config_instance | ( | int | yac_instance_id, |
| int | emit_flags, | ||
| char ** | config ) |
End of the definition phase, invocation of the search and setup of internal data structures for coupling (communication matrices and interpolation weights). In addition, the collected coupling configuration from all processes is emitted.
| [in] | yac_instance_id | id of the YAC instance |
| [in] | emit_flags | flags for configuring the generated coupling configuration output (YAC_YAML_EMITTER_DEFAULT or YAC_YAML_EMITTER_JSON) |
| [out] | config | coupling configuration |
Definition at line 4406 of file yac.c.


| void yac_cenddef_instance | ( | int | yac_instance_id | ) |
End of the definition phase, invocation of the search and setup of internal data structures for coupling (communication matrices and interpolation weights)
| [in] | yac_instance_id | id of the YAC instance |
Definition at line 4393 of file yac.c.


| void yac_cexchange | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ***const | send_field, | ||
| double ** | recv_field, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the coupling fields
| [in] | send_field_id | - |
| [in] | recv_field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | recv_field | - receive buffer dimensions: recv_field[collection_size][nbr_points] |
| [out] | send_info | - returned send info |
| [out] | recv_info | - returned recv info |
| [out] | ierror | - returned error |
Definition at line 4345 of file yac.c.


| void yac_cexchange_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double * | send_field, | ||
| double * | recv_field, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the coupling fields
| [in] | send_field_id | - |
| [in] | recv_field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | recv_field | - receive buffer (all data is stored in one contiguous part of the memory) dimensions: recv_field[collection_size][nbr_points] |
| [out] | send_info | - returned send info |
| [out] | recv_info | - returned recv info |
| [out] | ierror | - returned error |
Definition at line 3735 of file yac.c.


| void yac_cexchange_frac | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ***const | send_field, | ||
| double ***const | send_frac_mask, | ||
| double ** | recv_field, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the coupling fields
| [in] | send_field_id | - |
| [in] | recv_field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | send_frac_mask | - send fractional mask dimensions send_frac_mask[collection_size] [nbr_fields] [nbr_points] |
| [in] | recv_field | - receive buffer dimensions: recv_field[collection_size][nbr_points] |
| [out] | send_info | - returned send info |
| [out] | recv_info | - returned recv info |
| [out] | ierror | - returned error |
Definition at line 4033 of file yac.c.


| void yac_cexchange_frac_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double * | send_field, | ||
| double * | send_frac_mask, | ||
| double * | recv_field, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the coupling fields
| [in] | send_field_id | - |
| [in] | recv_field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | send_frac_mask | - send fractional mask (all data is stored in one contiguous part of the memory) dimensions send_frac_mask[collection_size] [nbr_fields] [nbr_points] |
| [in] | recv_field | - receive buffer (all data is stored in one contiguous part of the memory) dimensions: recv_field[collection_size][nbr_points] |
| [out] | send_info | - returned send info |
| [out] | recv_info | - returned recv info |
| [out] | ierror | - returned error |
Definition at line 3846 of file yac.c.


| void yac_cexchange_frac_ptr_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ** | send_field, | ||
| double ** | send_frac_mask, | ||
| double ** | recv_field, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer dimensions send_field[collection_size * nbr_fields] [nbr_points] |
| [in] | send_frac_mask | send buffer dimensions send_frac_mask[collection_size * nbr_fields] [nbr_points] |
| [in] | recv_field | receive buffer dimensions: recv_field[collection_size][nbr_points] |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 3950 of file yac.c.

| void yac_cexchange_ptr_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ** | send_field, | ||
| double ** | recv_field, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | send_field_id | - |
| [in] | recv_field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size * nbr_fields] [nbr_points] |
| [in] | recv_field | - receive buffer dimensions: recv_field[collection_size][nbr_points] |
| [out] | send_info | - returned send info |
| [out] | recv_info | - returned recv info |
| [out] | ierror | - returned error |
Definition at line 3885 of file yac.c.

| void yac_cexchange_raw | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ***const | send_field, | ||
| double *** | src_field_buffer, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the source points required for the interpolation of the local target field
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 4360 of file yac.c.


| void yac_cexchange_raw_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double * | send_field, | ||
| double * | src_field_buffer, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the source points required for the interpolation of the local target field
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 3825 of file yac.c.

| void yac_cexchange_raw_frac | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ***const | send_field, | ||
| double ***const | send_frac_mask, | ||
| double *** | src_field_buffer, | ||
| double *** | src_frac_mask_buffer, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the source points required for the interpolation of the local target field
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | send_frac_mask | send fractional mask dimensions send_frac_mask[collection_size] [nbr_fields] [nbr_points] |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (dimensions: src_frac_mask_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 4149 of file yac.c.


| void yac_cexchange_raw_frac_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double * | send_field, | ||
| double * | send_frac_mask, | ||
| double * | src_field_buffer, | ||
| double * | src_frac_mask_buffer, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Exchange of the source points required for the interpolation of the local target field
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | send_frac_mask | send fractional mask (all data is stored in one contiguous part of the memory) dimensions send_frac_mask[collection_size] [nbr_fields] [nbr_points] |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 3767 of file yac.c.


| void yac_cexchange_raw_frac_ptr_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ** | send_field, | ||
| double ** | send_frac_mask, | ||
| double ** | src_field_buffer, | ||
| double ** | src_frac_mask_buffer, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer dimensions send_field[collection_size * nbr_fields] [nbr_points] |
| [in] | send_frac_mask | send buffer dimensions send_frac_mask[collection_size * nbr_fields] [nbr_points] |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size * num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size * num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 3983 of file yac.c.

| void yac_cexchange_raw_ptr_ | ( | int const | send_field_id, |
| int const | recv_field_id, | ||
| int const | collection_size, | ||
| double ** | send_field, | ||
| double ** | src_field_buffer, | ||
| int * | send_info, | ||
| int * | recv_info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | send_field_id | |
| [in] | recv_field_id | |
| [in] | collection_size | |
| [in] | send_field | send buffer dimensions send_field[collection_size * nbr_fields] [nbr_points] |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size * num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | send_info | returned send info |
| [out] | recv_info | returned recv info |
| [out] | ierror | returned error |
Definition at line 3913 of file yac.c.

| void yac_cfinalize | ( | ) |
Finalises YAC.
First cleans up the default YAC instance, if it was initialised and not yet cleaned up by a call to yac_ccleanup. If there are no remaining YAC instances, MPI and yaxt will be finalised (if initialised by YAC) and instance independed memory allocated by YAC will be freed.
Definition at line 740 of file yac.c.


| void yac_cfinalize_instance | ( | int | yac_instance_id | ) |
Finalises YAC.
First cleans up the provided YAC instance, if it was initialised and not yet cleaned up by a call to yac_ccleanup_instance. If there are no remaining YAC instances, MPI and yaxt will be finalised (if initialised by YAC) and instance independed memory allocated by YAC will be freed.
| [in] | yac_instance_id | id of the YAC instance to be finalised |
Definition at line 731 of file yac.c.


| void yac_cfree_ext_couple_config | ( | int | ext_couple_config_id | ) |
| void yac_cfree_ext_spmap_config | ( | int | ext_spmap_config_id | ) |
Frees an extended source point mapping interpolation configuration
| [in] | ext_spmap_config_id |
Definition at line 5286 of file yac.c.


| void yac_cfree_interp_stack_config | ( | int | interp_stack_config_id | ) |
| void yac_cfree_spmap_overwrite_config | ( | int | spmap_overwrite_config_id | ) |
Frees an source point mapping interpolation overwrite configuration
| [in] | spmap_overwrite_config_id | source point mapping interpolation overwrite configuration |
Definition at line 5482 of file yac.c.

| void yac_cget | ( | int const | field_id, |
| int const | collection_size, | ||
| double ** | recv_field, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | recv_field | - receive buffer dimensions: recv_field[collection_size][nbr_points] |
| [out] | info | - returned info argument indicating the action performed |
| [out] | ierror | - returned error |
Definition at line 2759 of file yac.c.


| void yac_cget_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | recv_field, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | recv_field | - receive buffer (all data is stored in one contiguous part of the memory) dimensions: recv_field[collection_size][nbr_points] |
| [in] | info | - returned info argument indicating the action performed |
| [out] | ierror | - returned error |
Definition at line 2741 of file yac.c.


| void yac_cget_action | ( | int | field_id, |
| int * | action ) |
Returns the action a put/get would return for the current timestep
| [in] | field_id | field id returned by yac_cdef_field |
| [out] | action | action for the current timestep (YAC_ACTION_NONE, YAC_ACTION_REDUCTION, YAC_ACTION_COUPLING, YAC_ACTION_GET_FOR_RESTART, YAC_ACTION_PUT_FOR_RESTART, or YAC_ACTION_OUT_OF_BOUND) |
Definition at line 2380 of file yac.c.


| void yac_cget_async | ( | int const | field_id, |
| int const | collection_size, | ||
| double ** | recv_field, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | recv_field | - receive buffer dimensions: recv_field[collection_size][nbr_points] |
| [out] | info | - returned info argument indicating the action performed |
| [out] | ierror | - returned error |
Definition at line 2768 of file yac.c.


| void yac_cget_async_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | recv_field, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | recv_field | - receive buffer (all data is stored in one contiguous part of the memory) dimensions: recv_field[collection_size][nbr_points] |
| [in] | info | - returned info argument indicating the action performed |
| [out] | ierror | - returned error |
Definition at line 2750 of file yac.c.


| int yac_cget_calendar | ( | ) |
| int yac_cget_collection_size_from_field_id | ( | int | field_id | ) |
| void yac_cget_comp_comm | ( | int | comp_id, |
| MPI_Comm * | comp_comm ) |
| void yac_cget_comp_grid_names | ( | const char * | comp_name, |
| int | nbr_grids, | ||
| const char ** | grid_names ) |
query routine to get the list of grid names of a given component that are referenced by at least one defined field or have metadata assigned to it
| [in] | comp_name | name of the component |
| [in] | nbr_grids | number of grids |
| [out] | grid_names | list of grid names |
Definition at line 4634 of file yac.c.

| void yac_cget_comp_grid_names_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| int | nbr_grids, | ||
| const char ** | grid_names ) |
query routine to get the list of grid names of a given component that are referenced by at least one defined field or have metadata assigned to it
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_name | name of the component |
| [in] | nbr_grids | number of grids |
| [out] | grid_names | list of grid names |
Definition at line 4592 of file yac.c.


| void yac_cget_comp_names | ( | int | nbr_comps, |
| const char ** | comp_names ) |
| void yac_cget_comp_names_instance | ( | int | yac_instance_id, |
| int | nbr_comps, | ||
| const char ** | comp_names ) |
query routine to get the list of component names for defined
| [in] | yac_instance_id | id of the YAC instance |
| [in] | nbr_comps | number of components |
| [out] | comp_names | list of component names |
Definition at line 4541 of file yac.c.


| int yac_cget_comp_nbr_grids | ( | const char * | comp_name | ) |
| int yac_cget_comp_nbr_grids_instance | ( | int | yac_instance_id, |
| const char * | comp_name ) |
query routine for number of grids defined for a given components that is referenced by at least one defined field.
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_name |
Definition at line 4488 of file yac.c.


| const char * yac_cget_component_metadata | ( | const char * | comp_name | ) |
| const char * yac_cget_component_metadata_instance | ( | int | yac_instance_id, |
| const char * | comp_name ) |
| const char * yac_cget_component_name_from_field_id | ( | int | field_id | ) |
| void yac_cget_comps_comm | ( | const char ** | comp_names, |
| int | num_comps, | ||
| MPI_Comm * | comps_comm ) |
Generates an MPI communicator that contains all processes of the provided components
| [in] | comp_names | name of components |
| [in] | num_comps | number of components |
| [out] | comps_comm | generated communicator |
Definition at line 906 of file yac.c.


| void yac_cget_comps_comm_instance | ( | int | yac_instance_id, |
| const char ** | comp_names, | ||
| int | num_comps, | ||
| MPI_Comm * | comps_comm ) |
Generates an MPI communicator that contains all processes of the provided components
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_names | name of components |
| [in] | num_comps | number of components |
| [out] | comps_comm | generated communicator |
Definition at line 896 of file yac.c.


| int yac_cget_default_instance_id | ( | ) |
Getter function for the default instance
Returns the instance id of the default instance.
Definition at line 467 of file yac.c.


| char * yac_cget_end_datetime | ( | void | ) |
| char * yac_cget_end_datetime_instance | ( | int | yac_instance_id | ) |
| void yac_cget_ext_couple_config | ( | int * | ext_couple_config_id | ) |
| void yac_cget_ext_couple_config_collection_selection | ( | int | ext_couple_config_id, |
| int * | collection_size, | ||
| int ** | collection_indices ) |
Gets the collection selection
| [in] | ext_couple_config_id | extended coupling configuration |
| [out] | collection_size | number of selected collections |
| [out] | collection_indices | pointer to array of selected collection indices (may be NULL if contiguous) |
collection_indices. Definition at line 1839 of file yac.c.


| void yac_cget_ext_couple_config_mapping_side | ( | int | ext_couple_config_id, |
| int * | mapping_side ) |
| void yac_cget_ext_couple_config_scale_factor | ( | int | ext_couple_config_id, |
| double * | scale_factor ) |
| void yac_cget_ext_couple_config_scale_summand | ( | int | ext_couple_config_id, |
| double * | scale_summand ) |
| void yac_cget_ext_couple_config_src_mask_names | ( | int | ext_couple_config_id, |
| size_t * | num_src_mask_names, | ||
| char const *const ** | src_mask_names ) |
| void yac_cget_ext_couple_config_tgt_mask_name | ( | int | ext_couple_config_id, |
| char const ** | tgt_mask_name ) |
| void yac_cget_ext_couple_config_use_raw_exchange | ( | int | ext_couple_config_id, |
| int * | use_raw_exchange ) |
| void yac_cget_ext_couple_config_weight_file | ( | int | ext_couple_config_id, |
| char const ** | weight_file ) |
| void yac_cget_ext_couple_config_weight_file_on_existing | ( | int | ext_couple_config_id, |
| int * | weight_file_on_existing ) |
Gets how already existing weight files are handled
| [in] | ext_couple_config_id | extended coupling configuration |
| [in] | weight_file_on_existing | handling of existing weight files |
Definition at line 1623 of file yac.c.


| void yac_cget_ext_couple_config_yaxt_exchanger_name | ( | int | ext_couple_config_id, |
| char const ** | yaxt_exchanger_name ) |
| void yac_cget_ext_spmap_config | ( | int * | ext_spmap_config_id | ) |
Get an extended source point mapping interpolation configuration
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
Definition at line 5260 of file yac.c.


| int yac_cget_field_collection_size | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
| int yac_cget_field_collection_size_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
| const char * yac_cget_field_datetime | ( | int | field_id | ) |
| double yac_cget_field_frac_mask_fallback_value | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
query routine to get the fractional mask fallback value of a field
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name |
Definition at line 4771 of file yac.c.

| double yac_cget_field_frac_mask_fallback_value_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
query routine to get the fractional mask fallback value of a field
| [in] | yac_instance_id | |
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name |
Definition at line 4750 of file yac.c.


| int yac_cget_field_id | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
| int yac_cget_field_id_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
query routine to get the field_id from component, grid and field name (if defined on this process)
| [in] | yac_instance_id | |
| [in] | comp_name | component name |
| [in] | grid_name | grid name |
| [in] | field_name | field name |
Definition at line 4443 of file yac.c.


| int yac_cget_field_is_defined | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
determines whether a field with the provided component, grid, and field name is defined on the local process
| [in] | comp_name | component name |
| [in] | grid_name | grid name |
| [in] | field_name | field name |
Definition at line 4435 of file yac.c.

| int yac_cget_field_is_defined_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
determines whether a field with the provided component, grid, and field name is defined on the local process
| [in] | yac_instance_id | |
| [in] | comp_name | component name |
| [in] | grid_name | grid name |
| [in] | field_name | field name |
Definition at line 4426 of file yac.c.


| const char * yac_cget_field_metadata | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
| const char * yac_cget_field_metadata_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
| const char * yac_cget_field_name_from_field_id | ( | int | field_id | ) |
| void yac_cget_field_names | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| int | nbr_fields, | ||
| const char ** | field_names ) |
query routine to get the list of field names defined on the given component and grid for the default YAC instance.
| [in] | comp_name | component name |
| [in] | grid_name | grid name |
| [in] | nbr_fields | number of fields |
| [out] | field_names | list of field names |
Definition at line 4679 of file yac.c.

| void yac_cget_field_names_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| int | nbr_fields, | ||
| const char ** | field_names ) |
query routine to get the list of field names on the given component and grid
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_name | component name |
| [in] | grid_name | grid name |
| [in] | nbr_fields | number of fields |
| [out] | field_names | list of grid names |
Definition at line 4640 of file yac.c.


| int yac_cget_field_role | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
query routine to get the role of a field for a given ID
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name |
Definition at line 4797 of file yac.c.

| int yac_cget_field_role_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
query routine to get the role of a field for a given ID
| [in] | yac_instance_id | |
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name |
Definition at line 4786 of file yac.c.


| void yac_cget_field_source | ( | const char * | tgt_comp_name, |
| const char * | tgt_grid_name, | ||
| const char * | tgt_field_name, | ||
| const char ** | src_comp_name, | ||
| const char ** | src_grid_name, | ||
| const char ** | src_field_name ) |
| void yac_cget_field_source_instance | ( | int | yac_instance_id, |
| const char * | tgt_comp_name, | ||
| const char * | tgt_grid_name, | ||
| const char * | tgt_field_name, | ||
| const char ** | src_comp_name, | ||
| const char ** | src_grid_name, | ||
| const char ** | src_field_name ) |
query routine to get the source field for a given target field
| [in] | yac_instance_id | |
| [in] | tgt_comp_name | |
| [in] | tgt_grid_name | |
| [in] | tgt_field_name | |
| [out] | src_comp_name | |
| [out] | src_grid_name | |
| [out] | src_field_name |
Definition at line 4804 of file yac.c.


| const char * yac_cget_field_timestep | ( | const char * | comp_name, |
| const char * | grid_name, | ||
| const char * | field_name ) |
| const char * yac_cget_field_timestep_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name, | ||
| const char * | field_name ) |
query routine to get the timestep of a field
| [in] | yac_instance_id | |
| [in] | comp_name | |
| [in] | grid_name | |
| [in] | field_name |
Definition at line 4731 of file yac.c.


| const char * yac_cget_grid_metadata | ( | const char * | grid_name | ) |
| const char * yac_cget_grid_metadata_instance | ( | int | yac_instance_id, |
| const char * | grid_name ) |
| const char * yac_cget_grid_name_from_field_id | ( | int | field_id | ) |
| void yac_cget_grid_names | ( | int | nbr_grids, |
| const char ** | grid_names ) |
query routine to get the list of grid names of the default YAC instance that are referenced by at least one defined field or have metadata assigned to it
| [in] | nbr_grids | number of grids |
| [out] | grid_names | list of grid names |
Definition at line 4587 of file yac.c.

| void yac_cget_grid_names_instance | ( | int | yac_instance_id, |
| int | nbr_grids, | ||
| const char ** | grid_names ) |
query routine to get the list of grid names that are referenced by at least one defined field or have metadata assigned to it
| [in] | yac_instance_id | id of the YAC instance |
| [in] | nbr_grids | number of grids |
| [out] | grid_names | list of grid names |
Definition at line 4567 of file yac.c.


| size_t yac_cget_grid_size | ( | int | location, |
| int | grid_id ) |
| void yac_cget_groupcomm | ( | MPI_Comm * | group_comm | ) |
Providing a group communicator for the default YAC instance
| [out] | group_comm | communicator containing all processes that passed the same group name to the init-routine or MPI_COMM_NULL if not group name was provided. |
| void yac_cget_groupcomm_instance | ( | int | yac_instance_id, |
| MPI_Comm * | group_comm ) |
Providing a group communicator
| [in] | yac_instance_id | id of the YAC instance |
| [out] | group_comm | communicator containing all processes that passed the same group name to the init-routine or MPI_COMM_NULL if not group name was provided. |
| void yac_cget_interp_stack_config | ( | int * | interp_stack_config_id | ) |
| void yac_cget_interp_stack_config_from_string_json | ( | char const * | interp_stack_config, |
| int * | interp_stack_config_id ) |
generate an interpolation stack from a "0" terminated string that contains a JSON formated description of the stack
| [in] | interp_stack_config | interpolation stack description |
| [out] | interp_stack_config_id | interpolation stack |
Definition at line 5905 of file yac.c.


| void yac_cget_interp_stack_config_from_string_yaml | ( | char const * | interp_stack_config, |
| int * | interp_stack_config_id ) |
generate an interpolation stack from a "0" terminated string that contains a YAML formated description of the stack
| [in] | interp_stack_config | interpolation stack description |
| [out] | interp_stack_config_id | interpolation stack |
Definition at line 5897 of file yac.c.


| const char * yac_cget_mpi_handshake_group_name | ( | void | ) |
Retrieve the MPI handshake group name used by YAC.
This function returns (via an output pointer) mpi_handshake_group_name.
Definition at line 832 of file yac.c.

| int yac_cget_nbr_comps | ( | void | ) |
| int yac_cget_nbr_comps_instance | ( | int | yac_instance_id | ) |
| int yac_cget_nbr_fields | ( | const char * | comp_name, |
| const char * | grid_name ) |
query routine for number of coupling fields defined in the given component and grids of the default YAC instance
| [in] | comp_name | name of the component |
| [in] | grid_name | name of the grid |
Definition at line 4536 of file yac.c.

| int yac_cget_nbr_fields_instance | ( | int | yac_instance_id, |
| const char * | comp_name, | ||
| const char * | grid_name ) |
query routine for number of coupling fields defined in the given component and grids
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_name | name of the component |
| [in] | grid_name | name of the grid |
Definition at line 4516 of file yac.c.


| int yac_cget_nbr_grids | ( | ) |
| int yac_cget_nbr_grids_instance | ( | int | yac_instance_id | ) |
query routine for number of grids that are referenced by at least one defined field or have metadata assigned to it
| [in] | yac_instance_id | id of the YAC instance |
Definition at line 4475 of file yac.c.


| size_t yac_cget_points_size | ( | int | points_id | ) |
| void yac_cget_raw | ( | int const | field_id, |
| int const | collection_size, | ||
| double *** | src_field_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2963 of file yac.c.


| void yac_cget_raw_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | src_field_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2850 of file yac.c.


| void yac_cget_raw_async | ( | int const | field_id, |
| int const | collection_size, | ||
| double *** | src_field_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2976 of file yac.c.

| void yac_cget_raw_async_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | src_field_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size * SUM(src_field_buffer_sizes)]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2907 of file yac.c.


| void yac_cget_raw_frac | ( | int const | field_id, |
| int const | collection_size, | ||
| double *** | src_field_buffer, | ||
| double *** | src_frac_mask_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (dimensions: src_frac_mask_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2990 of file yac.c.


| void yac_cget_raw_frac_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | src_field_buffer, | ||
| double * | src_frac_mask_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (all data is stored in one contiguous part of the memory) (dimensions: src_frac_mask_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2862 of file yac.c.


| void yac_cget_raw_frac_async | ( | int const | field_id, |
| int const | collection_size, | ||
| double *** | src_field_buffer, | ||
| double *** | src_frac_mask_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (dimensions: src_frac_mask_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 3008 of file yac.c.

| void yac_cget_raw_frac_async_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | src_field_buffer, | ||
| double * | src_frac_mask_buffer, | ||
| int * | info, | ||
| int * | ierror ) |
Receiving source points required for the interpolation of the local target field
| [in] | field_id | |
| [in] | collection_size | |
| [in] | src_field_buffer | source field buffer (all data is stored in one contiguous part of the memory) (dimensions: src_field_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [in] | src_frac_mask_buffer | source fractional mask buffer (all data is stored in one contiguous part of the memory) (dimensions: src_frac_mask_buffer [collection_size] [num_src_fields] [src_field_buffer_sizes[src_field_idx]]) |
| [out] | info | returned info argument indicating the action performed |
| [out] | ierror | returned error |
Definition at line 2919 of file yac.c.


| void yac_cget_raw_interp_weights_data | ( | int const | field_id, |
| double * | frac_mask_fallback_value, | ||
| double * | scaling_factor, | ||
| double * | scaling_summand, | ||
| size_t * | num_fixed_values, | ||
| double ** | fixed_values, | ||
| size_t ** | num_tgt_per_fixed_value, | ||
| size_t ** | tgt_idx_fixed, | ||
| size_t * | num_wgt_tgt, | ||
| size_t ** | wgt_tgt_idx, | ||
| size_t ** | num_src_per_tgt, | ||
| double ** | weights, | ||
| size_t ** | src_field_idx, | ||
| size_t ** | src_idx, | ||
| size_t * | num_src_fields, | ||
| size_t ** | src_field_buffer_sizes ) |
Get interpolation information for raw data exchange
| [in] | field_id | |
| [out] | frac_mask_fallback_value | fractional masking fallback value |
| [out] | scaling_factor | scaling factor |
| [out] | scaling_summand | scaling summand |
| [out] | num_fixed_values | number of fixed values |
| [out] | fixed_values | array of fixed values |
| [out] | num_tgt_per_fixed_value | number of target points per fixed value |
| [out] | tgt_idx_fixed | local target point indices that receive a fixed value |
| [out] | num_wgt_tgt | number of target points receiving a weighted sum of source points |
| [out] | wgt_tgt_idx | local target point indices that receive weighted sum of source points |
| [out] | num_src_per_tgt | number of source points per target point |
| [out] | weights | weights |
| [out] | src_field_idx | source field indices |
| [out] | src_idx | source field buffer indices |
| [out] | num_src_fields | number of source fields |
| [out] | src_field_buffer_sizes | buffer sizes of source field buffers |
Definition at line 2193 of file yac.c.


| void yac_cget_raw_interp_weights_data_csr | ( | int const | field_id, |
| double * | frac_mask_fallback_value, | ||
| double * | scaling_factor, | ||
| double * | scaling_summand, | ||
| size_t * | num_fixed_values, | ||
| double ** | fixed_values, | ||
| size_t ** | num_tgt_per_fixed_value, | ||
| size_t ** | tgt_idx_fixed, | ||
| size_t ** | src_indptr, | ||
| double ** | weights, | ||
| size_t ** | src_field_idx, | ||
| size_t ** | src_idx, | ||
| size_t * | num_src_fields, | ||
| size_t ** | src_field_buffer_sizes ) |
Get interpolation information for raw data exchange (weight matrix is stored as a sparse matrix using CSR format)
| [in] | field_id | |
| [out] | frac_mask_fallback_value | fractional masking fallback value |
| [out] | scaling_factor | scaling factor |
| [out] | scaling_summand | scaling summand |
| [out] | num_fixed_values | number of fixed values |
| [out] | fixed_values | array of fixed values |
| [out] | num_tgt_per_fixed_value | number of target points per fixed value |
| [out] | tgt_idx_fixed | local target point indices that receive a fixed value |
| [out] | src_indptr | offset to weights/src_idx/src_field_idx for each local target point |
| [out] | weights | weights |
| [out] | src_field_idx | source field indices |
| [out] | src_idx | source field buffer indices |
| [out] | num_src_fields | number of source fields |
| [out] | src_field_buffer_sizes | buffer sizes of source field buffers |
"src_indptr[tgt_idx+1] - src_indptr[tgt_idx]". Definition at line 2233 of file yac.c.


| int yac_cget_role_from_field_id | ( | int | field_id | ) |
query routine to get the role of a field for a given ID
| [in] | field_id | ID as provided by yac_cdef_field |
Definition at line 4722 of file yac.c.


| void yac_cget_spmap_overwrite_config | ( | int * | spmap_overwrite_config_id | ) |
Get an source point mapping interpolation overwrite configuration
| [out] | spmap_overwrite_config_id | source point mapping interpolation overwrite configuration |
Definition at line 5464 of file yac.c.

| char * yac_cget_start_datetime | ( | void | ) |
| char * yac_cget_start_datetime_instance | ( | int | yac_instance_id | ) |
| const char * yac_cget_timestep_from_field_id | ( | int | field_id | ) |
query routine to get the timestep of a field for a given ID
| [in] | field_id | ID as provided by yac_cdef_field |
Definition at line 4708 of file yac.c.


| char * yac_cget_version | ( | void | ) |
| void yac_cinit | ( | void | ) |
Elementary initialisation of the whole system
MPI_COMM_WORLD with the group name mpi_handshake_group_name and uses the created communicator for the initialization. If you do not want to execute an MPI Handshake on MPI_COMM_WORLD, call yac_cinit_comm with MPI_COMM_WORLD directly. Definition at line 510 of file yac.c.


| void yac_cinit_comm | ( | MPI_Comm | comm | ) |
Elementary initialisation of the whole system using a user-provided MPI communicator
| [in] | comm | MPI communicator |
Definition at line 484 of file yac.c.


| void yac_cinit_comm_dummy | ( | MPI_Comm | comm | ) |
Dummy initialisation of the whole system using a user-provided MPI world communicator
| [in] | comm | MPI communicator |
Definition at line 520 of file yac.c.


| void yac_cinit_comm_instance | ( | MPI_Comm | comm, |
| int * | yac_instance_id ) |
Elementary initialisation of the whole system using a user-provided MPI communicator
| [in] | comm | MPI communicator |
| [out] | yac_instance_id | id of the YAC instance initialised by this call |
Definition at line 472 of file yac.c.


| void yac_cinit_dummy | ( | void | ) |
Dummy for initialisation of the whole system
Definition at line 537 of file yac.c.

| void yac_cinit_instance | ( | int * | yac_instance_id | ) |
Elementary initialisation of the whole system
| [out] | yac_instance_id | id of the YAC instance initialised by this call |
MPI_COMM_WORLD with the group name mpi_handshake_group_name and uses the created communicator for the initialization. If you do not want to execute an MPI Handshake on MPI_COMM_WORLD, call yac_cinit_comm with MPI_COMM_WORLD directly. Definition at line 498 of file yac.c.


| void yac_cmpi_handshake | ( | MPI_Comm | comm, |
| size_t | n, | ||
| char const ** | group_names, | ||
| MPI_Comm * | group_comms ) |
MPI Handshake (MPI handshake algorithm)
Splits the provided communicator into group communicators. Each group communicator contains all processes of the provided communicator that provided the same group name. The order of the group names can be arbitrary on each process. A process can be part of multiple groups.
| [in] | comm | MPI communicator |
| [in] | n | number of group communicators to be generated |
| [in] | group_names | group names |
| [out] | group_comms | group communicators |
MPI_COMM_WORLD and use a fixed mpi_handshake_group_name to build its internal communicator. MPI_COMM_WORLD) that is used by other processes that actually do use YAC, this routine can be called, while not providing mpi_handshake_group_name. This will exclude a process from later collective YAC-calls. Definition at line 434 of file yac.c.


| void yac_cpredef_comp | ( | char const * | comp_name, |
| int * | comp_id ) |
Non-blocking pre-definition of a component for the default YAC instance.
| [in] | comp_name | name of the component |
| [out] | comp_id | component Id |
Definition at line 969 of file yac.c.

| void yac_cpredef_comp_instance | ( | int | yac_instance_id, |
| char const * | comp_name, | ||
| int * | comp_id ) |
Non-blocking pre-definition of a component.
| [in] | yac_instance_id | id of the YAC instance |
| [in] | comp_name | name of the component |
| [out] | comp_id | component Id |
Definition at line 936 of file yac.c.


| void yac_cput | ( | int const | field_id, |
| int const | collection_size, | ||
| double ***const | send_field, | ||
| int * | info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [out] | info | - returned info |
| [out] | ierror | - returned error |
Definition at line 3721 of file yac.c.


| void yac_cput_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | send_field, | ||
| int * | info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [out] | info | - returned info |
| [out] | ierror | - returned error |
Definition at line 3063 of file yac.c.

| void yac_cput_frac | ( | int const | field_id, |
| int const | collection_size, | ||
| double ***const | send_field, | ||
| double ***const | send_frac_mask, | ||
| int * | info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | send_frac_mask | - send fractional mask dimensions send_frac_mask[collection_size] [nbr_fields] [nbr_points] |
| [out] | info | - returned info |
| [out] | ierror | - returned error |
Definition at line 3598 of file yac.c.


| void yac_cput_frac_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double * | send_field, | ||
| double * | send_frac_mask, | ||
| int * | info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer (all data is stored in one contiguous part of the memory) dimensions send_field[collection_size] [nbr_fields] [nbr_points] |
| [in] | send_frac_mask | - send fractional mask (all data is stored in one contiguous part of the memory) dimensions send_frac_mask[collection_size] [nbr_fields] [nbr_points] |
| [out] | info | - returned info |
| [out] | ierror | - returned error |
Definition at line 3083 of file yac.c.

| void yac_cput_frac_ptr_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double ** | send_field, | ||
| double ** | send_frac_mask, | ||
| int * | info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size * nbr_fields] [nbr_points] |
| [in] | send_frac_mask | - send fractional mask dimensions send_frac_mask[collection_size * nbr_fields] [nbr_points] |
| [out] | info | - returned info |
| [out] | ierror | - returned error |
Definition at line 3178 of file yac.c.

| void yac_cput_ptr_ | ( | int const | field_id, |
| int const | collection_size, | ||
| double ** | send_field, | ||
| int * | info, | ||
| int * | ierror ) |
Sending of the coupling fields
| [in] | field_id | - |
| [in] | collection_size | - |
| [in] | send_field | - send buffer dimensions send_field[collection_size * nbr_fields] [nbr_points] |
| [out] | info | - returned info |
| [out] | ierror | - returned error |
Definition at line 3157 of file yac.c.

| void yac_cread_config_json | ( | const char * | json_file | ) |
| void yac_cread_config_json_instance | ( | int | yac_instance_id, |
| const char * | json_file ) |
| void yac_cread_config_yaml | ( | const char * | yaml_file | ) |
| void yac_cread_config_yaml_instance | ( | int | yac_instance_id, |
| const char * | yaml_file ) |
| void yac_cset_config_output_file | ( | const char * | filename, |
| int | fileformat, | ||
| int | sync_location, | ||
| int | include_definitions ) |
Activates writing out of the coupling configuration
| [in] | filename | name of the file to be written |
| [in] | fileformat | file format (YAC_CONFIG_OUTPUT_FORMAT_YAML or YAC_CONFIG_OUTPUT_FORMAT_JSON) |
| [in] | sync_location | synchronisation point after which the file is to be written (YAC_CONFIG_OUTPUT_SYNC_LOC_DEF_COMP, YAC_CONFIG_OUTPUT_SYNC_LOC_SYNC_DEF, or YAC_CONFIG_OUTPUT_SYNC_LOC_ENDDEF) |
| [in] | include_definitions | include user definitions (components, grids, and fields) |
Definition at line 647 of file yac.c.

| void yac_cset_config_output_file_instance | ( | int | yac_instance_id, |
| const char * | filename, | ||
| int | fileformat, | ||
| int | sync_location, | ||
| int | include_definitions ) |
Activates writing out of the coupling configuration
| [in] | yac_instance_id | YAC instance_id |
| [in] | filename | name of the file to be written |
| [in] | fileformat | file format (YAC_CONFIG_OUTPUT_FORMAT_YAML or YAC_CONFIG_OUTPUT_FORMAT_JSON) |
| [in] | sync_location | synchronisation point after which the file is to be written (YAC_CONFIG_OUTPUT_SYNC_LOC_DEF_COMP, YAC_CONFIG_OUTPUT_SYNC_LOC_SYNC_DEF, or YAC_CONFIG_OUTPUT_SYNC_LOC_ENDDEF) |
| [in] | include_definitions | include user definitions (components, grids, and fields) |
Definition at line 616 of file yac.c.


| void yac_cset_core_mask | ( | int const * | is_core, |
| int | location, | ||
| int | grid_id ) |
Set core mask for a grid
| [in] | is_core | 0 for cells/vertices/edges that are halos, 1 for cells/vertices/edges that are core |
| [in] | location | cell/vertex/edge |
| [in] | grid_id | grid id |
Definition at line 5065 of file yac.c.


| void yac_cset_ext_couple_config_collection_selection | ( | int | ext_couple_config_id, |
| int | collection_size, | ||
| int const * | collection_indices ) |
Sets the collection selection
| [in] | ext_couple_config_id | extended coupling configuration |
| [in] | collection_size | number of selected collections |
| [in] | collection_indices | array of selected collection indices (may be NULL if indices are contiguous) |
Definition at line 1831 of file yac.c.


| void yac_cset_ext_couple_config_mapping_side | ( | int | ext_couple_config_id, |
| int | mapping_side ) |
| void yac_cset_ext_couple_config_scale_factor | ( | int | ext_couple_config_id, |
| double | scale_factor ) |
| void yac_cset_ext_couple_config_scale_summand | ( | int | ext_couple_config_id, |
| double | scale_summand ) |
| void yac_cset_ext_couple_config_src_mask_names | ( | int | ext_couple_config_id, |
| size_t | num_src_mask_names, | ||
| char const *const * | src_mask_names ) |
Sets source mask names
| [in] | ext_couple_config_id | extended coupling configuration |
| [in] | num_src_mask_names | number of source mask names |
| [in] | src_mask_names | source mask names |
Definition at line 1718 of file yac.c.


| void yac_cset_ext_couple_config_tgt_mask_name | ( | int | ext_couple_config_id, |
| char const * | tgt_mask_name ) |
| void yac_cset_ext_couple_config_use_raw_exchange | ( | int | ext_couple_config_id, |
| int | use_raw_exchange ) |
| void yac_cset_ext_couple_config_weight_file | ( | int | ext_couple_config_id, |
| char const * | weight_file ) |
Sets the weight file name
| [in] | ext_couple_config_id | extended coupling configuration |
| [in] | weight_file | name of a weight file |
Definition at line 1585 of file yac.c.


| void yac_cset_ext_couple_config_weight_file_on_existing | ( | int | ext_couple_config_id, |
| int | weight_file_on_existing ) |
Specify handling of already existing weight files
| [in] | ext_couple_config_id | extended coupling configuration |
| [in] | weight_file_on_existing | handling of existing weight files |
Definition at line 1616 of file yac.c.


| void yac_cset_ext_couple_config_yaxt_exchanger_name | ( | int | ext_couple_config_id, |
| char const * | yaxt_exchanger_name ) |
| void yac_cset_ext_spmap_config_max_search_distance | ( | int | ext_spmap_config_id, |
| double | max_search_distance ) |
Sets the maximum search distance
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | max_search_distance | maximum search distance |
Definition at line 5316 of file yac.c.


| void yac_cset_ext_spmap_config_scale_type | ( | int | ext_spmap_config_id, |
| int | scale_type ) |
Sets the scaling type
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | scale_type | scaling type |
Definition at line 5342 of file yac.c.


| void yac_cset_ext_spmap_config_spread_distance | ( | int | ext_spmap_config_id, |
| double | spread_distance ) |
Sets the spread distance
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | spread_distance | spread distance |
Definition at line 5306 of file yac.c.


| void yac_cset_ext_spmap_config_src_cell_area_config_file | ( | int | ext_spmap_config_id, |
| char const * | filename, | ||
| char const * | varname, | ||
| int | min_global_id ) |
enables the reading of the source cell areas for the scaling
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | filename | netCDF file contain the cell areas |
| [in] | varname | variable name of cell areas |
| [in] | min_global_id | minimum global id |
Definition at line 5396 of file yac.c.


| void yac_cset_ext_spmap_config_src_cell_area_config_yac | ( | int | ext_spmap_config_id, |
| double | sphere_radius ) |
enables the computation of the source cell areas by yac for the scaling
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | sphere_radius | sphere radius |
Definition at line 5360 of file yac.c.


| void yac_cset_ext_spmap_config_tgt_cell_area_config_file | ( | int | ext_spmap_config_id, |
| char const * | filename, | ||
| char const * | varname, | ||
| int | min_global_id ) |
enables the reading of the target cell areas for the scaling
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | filename | netCDF file contain the cell areas |
| [in] | varname | variable name of cell areas |
| [in] | min_global_id | minimum global id |
Definition at line 5430 of file yac.c.


| void yac_cset_ext_spmap_config_tgt_cell_area_config_yac | ( | int | ext_spmap_config_id, |
| double | sphere_radius ) |
enables the computation of the target cell areas by yac
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | sphere_radius | sphere radius |
Definition at line 5378 of file yac.c.


| void yac_cset_ext_spmap_config_weight_type | ( | int | ext_spmap_config_id, |
| int | weight_type ) |
Sets the weightening type
| [out] | ext_spmap_config_id | extended source point mapping interpolation configuration |
| [in] | weight_type | weightening type |
Definition at line 5326 of file yac.c.


| void yac_cset_global_index | ( | int const * | global_index, |
| int | location, | ||
| int | grid_id ) |
Set global ids for a grid
| [in] | global_index | array of global indices |
| [in] | location | cell/vertex/edge |
| [in] | grid_id | grid id |
Definition at line 5049 of file yac.c.


| void yac_cset_global_index_yac_int | ( | yac_int const * | global_index, |
| int | location, | ||
| int | grid_id ) |
Set global ids for a grid
| [in] | global_index | array of global indices |
| [in] | location | cell/vertex/edge |
| [in] | grid_id | grid id |
Definition at line 5036 of file yac.c.

| void yac_cset_grid_output_file | ( | const char * | gridname, |
| const char * | filename ) |
Activates writing out of the grid data
| [in] | gridname | name of the grid to be written |
| [in] | filename | name of the file to be written |
Definition at line 676 of file yac.c.

| void yac_cset_grid_output_file_instance | ( | int | yac_instance_id, |
| const char * | gridname, | ||
| const char * | filename ) |
Activates writing out of the grid data
| [in] | yac_instance_id | YAC instance_id |
| [in] | gridname | name of the grid to be written |
| [in] | filename | name of the file to be written |
Definition at line 659 of file yac.c.


| void yac_cset_mask | ( | int const * | is_valid, |
| int | points_id ) |
| void yac_cset_spmap_overwrite_config_max_search_distance | ( | int | spmap_overwrite_config_id, |
| double | max_search_distance ) |
Sets the maximum search distance
| [out] | spmap_overwrite_config_id | source point mapping interpolation overwrite configuration |
| [in] | max_search_distance | maximum search distance |
Definition at line 5519 of file yac.c.

| void yac_cset_spmap_overwrite_config_spread_distance | ( | int | spmap_overwrite_config_id, |
| double | spread_distance ) |
Sets the spread distance
| [out] | spmap_overwrite_config_id | source point mapping interpolation overwrite configuration |
| [in] | spread_distance | spread distance |
Definition at line 5509 of file yac.c.

| void yac_cset_spmap_overwrite_config_src_point_selection_bnd_circle | ( | int | spmap_overwrite_config_id, |
| double | center_lon, | ||
| double | center_lat, | ||
| double | inc_angle ) |
Sets the source point selection method to a bounding circle
| [out] | spmap_overwrite_config_id | source point mapping interpolation overwrite configuration |
| [in] | center_lon | longitude coordinate of the center of the bounding circle (in radians) |
| [in] | center_lat | latitude coordinate of the center of the bounding circle (in radians) |
| [in] | inc_angle | the angle between center vector and a vector pointing to any point on the bounding circle (in radians) |
Definition at line 5491 of file yac.c.

| void yac_cset_spmap_overwrite_config_weight_type | ( | int | spmap_overwrite_config_id, |
| int | weight_type ) |
Sets the weightening type
| [out] | spmap_overwrite_config_id | source point mapping interpolation overwrite configuration |
| [in] | weight_type | weightening type |
Definition at line 5529 of file yac.c.

| void yac_csync_def | ( | void | ) |
| void yac_csync_def_instance | ( | int | yac_instance_id | ) |
| void yac_ctest | ( | int | field_id, |
| int * | flag ) |
Determines whether there is an asynchronous communication associated with a field, which is not yet completed (for example by a previous put)
| [in] | field_id | |
| [out] | flag | "0" if there is an uncompleted asynchronous communication associated with the field, "1" otherwise |
Definition at line 3211 of file yac.c.


| void yac_cupdate | ( | int | field_id | ) |
If the action for the current timestep is YAC_ACTION_NONE, this routine will advance the internal clock to next timestep.
| [in] | field_id | field id returned by yac_cdef_field |
Definition at line 2446 of file yac.c.


| void yac_cwait | ( | int | field_id | ) |
| yac_abort_func yac_get_abort_handler | ( | void | ) |
Gets abort handler
| yac_abort_func yac_get_default_abort_handler | ( | void | ) |
Gets default abort handler
| void yac_restore_default_abort_handler | ( | void | ) |
Restores default abort handler
| void yac_set_abort_handler | ( | yac_abort_func | custom_abort | ) |
Sets custom abort handler
| [in] | custom_abort | custom abort handler |
| void yac_set_default_comm | ( | MPI_Comm | comm | ) |
Sets default MPI communicator (MPI_COMM_WORLD by default)
| [in] | comm | default MPI communicator |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Value used to indicate that not fractional masking is to be use
Definition at line 27 of file interpolation.c.
|
extern |
|
extern |
|
extern |
|
extern |
emit to YAML format
Definition at line 66 of file config_yaml.c.
|
extern |
emit to JSON format
Definition at line 67 of file config_yaml.c.