YetAnotherCoupler 3.5.2
|
#include "config.h"
#include <math.h>
#include <string.h>
#include "geometry.h"
#include "yac_mpi_internal.h"
#include "interp_stack_config.h"
Go to the source code of this file.
Data Structures | |
union | yac_interp_stack_config_entry |
struct | yac_interp_stack_config |
Functions | |
static void | yac_interp_stack_config_entry_copy (union yac_interp_stack_config_entry *to, union yac_interp_stack_config_entry *from) |
struct yac_interp_stack_config * | yac_interp_stack_config_copy (struct yac_interp_stack_config *interp_stack) |
static void | check_interpolation_type (enum yac_interpolation_list type, char const *routine) |
static int | yac_spmap_cell_area_config_compare (struct yac_spmap_cell_area_config a, struct yac_spmap_cell_area_config b) |
static int | yac_spmap_scale_config_compare (struct yac_spmap_scale_config a, struct yac_spmap_scale_config b) |
static int | yac_interp_stack_config_entry_compare (void const *a_, void const *b_) |
int | yac_interp_stack_config_compare (void const *a_, void const *b_) |
struct interp_method ** | yac_interp_stack_config_generate (struct yac_interp_stack_config *interp_stack) |
static size_t | yac_interp_stack_config_get_string_pack_size (char const *string, MPI_Comm comm) |
static size_t | yac_spmap_cell_area_config_get_pack_size (struct yac_spmap_cell_area_config cell_area_config, MPI_Comm comm) |
static size_t | yac_interp_stack_config_get_entry_pack_size (union yac_interp_stack_config_entry *entry, MPI_Comm comm) |
size_t | yac_interp_stack_config_get_pack_size (struct yac_interp_stack_config *interp_stack, MPI_Comm comm) |
static void | yac_interp_stack_config_pack_string (char const *string, void *buffer, int buffer_size, int *position, MPI_Comm comm) |
static void | yac_spmap_cell_area_config_pack (struct yac_spmap_cell_area_config cell_area_config, void *buffer, int buffer_size, int *position, MPI_Comm comm) |
static void | yac_interp_stack_config_pack_entry (union yac_interp_stack_config_entry *entry, void *buffer, int buffer_size, int *position, MPI_Comm comm) |
void | yac_interp_stack_config_pack (struct yac_interp_stack_config *interp_stack, void *buffer, int buffer_size, int *position, MPI_Comm comm) |
static void | yac_interp_stack_config_unpack_n_string (void *buffer, int buffer_size, int *position, char *string, int max_string_len, MPI_Comm comm) |
static char * | yac_interp_stack_config_unpack_string (void *buffer, int buffer_size, int *position, MPI_Comm comm) |
static void | yac_spmap_cell_area_config_unpack (void *buffer, int buffer_size, int *position, struct yac_spmap_cell_area_config *cell_area_config, MPI_Comm comm) |
static void | yac_interp_stack_config_unpack_entry (void *buffer, int buffer_size, int *position, union yac_interp_stack_config_entry *entry, MPI_Comm comm) |
struct yac_interp_stack_config * | yac_interp_stack_config_unpack (void *buffer, int buffer_size, int *position, MPI_Comm comm) |
struct yac_interp_stack_config * | yac_interp_stack_config_new () |
static void | yac_interp_stack_config_entry_free (union yac_interp_stack_config_entry *entry) |
void | yac_interp_stack_config_delete (struct yac_interp_stack_config *interp_stack_config) |
static union yac_interp_stack_config_entry * | yac_interp_stack_config_add_entry (struct yac_interp_stack_config *interp_stack_config) |
void | yac_interp_stack_config_add_average (struct yac_interp_stack_config *interp_stack_config, enum yac_interp_avg_weight_type reduction_type, int partial_coverage) |
void | yac_interp_stack_config_add_average_f2c (struct yac_interp_stack_config *interp_stack_config, int reduction_type, int partial_coverage) |
void | yac_interp_stack_config_add_ncc (struct yac_interp_stack_config *interp_stack_config, enum yac_interp_ncc_weight_type weight_type, int partial_coverage) |
void | yac_interp_stack_config_add_ncc_f2c (struct yac_interp_stack_config *interp_stack_config, int weight_type, int partial_coverage) |
void | yac_interp_stack_config_add_nnn (struct yac_interp_stack_config *interp_stack_config, enum yac_interp_nnn_weight_type type, size_t n, double max_search_distance, double scale) |
void | yac_interp_stack_config_add_nnn_f2c (struct yac_interp_stack_config *interp_stack_config, int type, size_t n, double max_search_distance, double scale) |
void | yac_interp_stack_config_add_conservative (struct yac_interp_stack_config *interp_stack_config, int order, int enforced_conserv, int partial_coverage, enum yac_interp_method_conserv_normalisation normalisation) |
void | yac_interp_stack_config_add_conservative_f2c (struct yac_interp_stack_config *interp_stack_config, int order, int enforced_conserv, int partial_coverage, int normalisation) |
static struct yac_spmap_cell_area_config | yac_spmap_cell_area_config_set (double sphere_radius, char const *filename, char const *varname, int min_global_id, char const *type) |
void | yac_interp_stack_config_add_spmap (struct yac_interp_stack_config *interp_stack_config, double spread_distance, double max_search_distance, enum yac_interp_spmap_weight_type weight_type, enum yac_interp_spmap_scale_type 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_interp_stack_config_add_spmap_f2c (struct yac_interp_stack_config *interp_stack_config, 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_interp_stack_config_add_hcsbb (struct yac_interp_stack_config *interp_stack_config) |
static void | check_string (char const *string, char const *file, int line, char const *routine, char const *variable) |
void | yac_interp_stack_config_add_user_file (struct yac_interp_stack_config *interp_stack_config, char const *filename) |
void | yac_interp_stack_config_add_fixed (struct yac_interp_stack_config *interp_stack_config, double value) |
void | yac_interp_stack_config_add_check (struct yac_interp_stack_config *interp_stack_config, char const *constructor_key, char const *do_search_key) |
void | yac_interp_stack_config_add_creep (struct yac_interp_stack_config *interp_stack_config, int creep_distance) |
void | yac_interp_stack_config_add_user_callback (struct yac_interp_stack_config *interp_stack_config, char const *func_compute_weights_key) |
size_t | yac_interp_stack_config_get_size (struct yac_interp_stack_config *interp_stack) |
union yac_interp_stack_config_entry const * | yac_interp_stack_config_get_entry (struct yac_interp_stack_config *interp_stack, size_t interp_stack_idx) |
enum yac_interpolation_list | yac_interp_stack_config_entry_get_type (union yac_interp_stack_config_entry const *interp_stack_entry) |
void | yac_interp_stack_config_entry_get_average (union yac_interp_stack_config_entry const *interp_stack_entry, enum yac_interp_avg_weight_type *reduction_type, int *partial_coverage) |
void | yac_interp_stack_config_entry_get_ncc (union yac_interp_stack_config_entry const *interp_stack_entry, enum yac_interp_ncc_weight_type *type, int *partial_coverage) |
void | yac_interp_stack_config_entry_get_nnn (union yac_interp_stack_config_entry const *interp_stack_entry, enum yac_interp_nnn_weight_type *type, size_t *n, double *max_search_distance, double *scale) |
void | yac_interp_stack_config_entry_get_conservative (union yac_interp_stack_config_entry const *interp_stack_entry, int *order, int *enforced_conserv, int *partial_coverage, enum yac_interp_method_conserv_normalisation *normalisation) |
void | yac_interp_stack_config_entry_get_spmap (union yac_interp_stack_config_entry const *interp_stack_entry, double *spread_distance, double *max_search_distance, enum yac_interp_spmap_weight_type *weight_type, enum yac_interp_spmap_scale_type *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_interp_stack_config_entry_get_user_file (union yac_interp_stack_config_entry const *interp_stack_entry, char const **filename) |
void | yac_interp_stack_config_entry_get_fixed (union yac_interp_stack_config_entry const *interp_stack_entry, double *value) |
void | yac_interp_stack_config_entry_get_check (union yac_interp_stack_config_entry const *interp_stack_entry, char const **constructor_key, char const **do_search_key) |
void | yac_interp_stack_config_entry_get_creep (union yac_interp_stack_config_entry const *interp_stack_entry, int *creep_distance) |
void | yac_interp_stack_config_entry_get_user_callback (union yac_interp_stack_config_entry const *interp_stack_entry, char const **func_compute_weights_key) |
|
inlinestatic |
|
static |
void yac_interp_stack_config_add_average | ( | struct yac_interp_stack_config * | interp_stack_config, |
enum yac_interp_avg_weight_type | reduction_type, | ||
int | partial_coverage ) |
Definition at line 1170 of file interp_stack_config.c.
void yac_interp_stack_config_add_average_f2c | ( | struct yac_interp_stack_config * | interp_stack_config, |
int | reduction_type, | ||
int | partial_coverage ) |
void yac_interp_stack_config_add_check | ( | struct yac_interp_stack_config * | interp_stack_config, |
char const * | constructor_key, | ||
char const * | do_search_key ) |
Definition at line 1465 of file interp_stack_config.c.
void yac_interp_stack_config_add_conservative | ( | struct yac_interp_stack_config * | interp_stack_config, |
int | order, | ||
int | enforced_conserv, | ||
int | partial_coverage, | ||
enum yac_interp_method_conserv_normalisation | normalisation ) |
Definition at line 1270 of file interp_stack_config.c.
void yac_interp_stack_config_add_conservative_f2c | ( | struct yac_interp_stack_config * | interp_stack_config, |
int | order, | ||
int | enforced_conserv, | ||
int | partial_coverage, | ||
int | normalisation ) |
void yac_interp_stack_config_add_creep | ( | struct yac_interp_stack_config * | interp_stack_config, |
int | creep_distance ) |
Definition at line 1498 of file interp_stack_config.c.
|
static |
void yac_interp_stack_config_add_fixed | ( | struct yac_interp_stack_config * | interp_stack_config, |
double | value ) |
Definition at line 1455 of file interp_stack_config.c.
void yac_interp_stack_config_add_hcsbb | ( | struct yac_interp_stack_config * | interp_stack_config | ) |
Definition at line 1419 of file interp_stack_config.c.
void yac_interp_stack_config_add_ncc | ( | struct yac_interp_stack_config * | interp_stack_config, |
enum yac_interp_ncc_weight_type | weight_type, | ||
int | partial_coverage ) |
Definition at line 1199 of file interp_stack_config.c.
void yac_interp_stack_config_add_ncc_f2c | ( | struct yac_interp_stack_config * | interp_stack_config, |
int | weight_type, | ||
int | partial_coverage ) |
void yac_interp_stack_config_add_nnn | ( | struct yac_interp_stack_config * | interp_stack_config, |
enum yac_interp_nnn_weight_type | type, | ||
size_t | n, | ||
double | max_search_distance, | ||
double | scale ) |
Definition at line 1227 of file interp_stack_config.c.
void yac_interp_stack_config_add_nnn_f2c | ( | struct yac_interp_stack_config * | interp_stack_config, |
int | type, | ||
size_t | n, | ||
double | max_search_distance, | ||
double | scale ) |
void yac_interp_stack_config_add_spmap | ( | struct yac_interp_stack_config * | interp_stack_config, |
double | spread_distance, | ||
double | max_search_distance, | ||
enum yac_interp_spmap_weight_type | weight_type, | ||
enum yac_interp_spmap_scale_type | 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 ) |
Definition at line 1352 of file interp_stack_config.c.
void yac_interp_stack_config_add_spmap_f2c | ( | struct yac_interp_stack_config * | interp_stack_config, |
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_interp_stack_config_add_user_callback | ( | struct yac_interp_stack_config * | interp_stack_config, |
char const * | func_compute_weights_key ) |
Definition at line 1508 of file interp_stack_config.c.
void yac_interp_stack_config_add_user_file | ( | struct yac_interp_stack_config * | interp_stack_config, |
char const * | filename ) |
Definition at line 1440 of file interp_stack_config.c.
int yac_interp_stack_config_compare | ( | void const * | a_, |
void const * | b_ ) |
Definition at line 332 of file interp_stack_config.c.
struct yac_interp_stack_config * yac_interp_stack_config_copy | ( | struct yac_interp_stack_config * | interp_stack | ) |
Definition at line 103 of file interp_stack_config.c.
void yac_interp_stack_config_delete | ( | struct yac_interp_stack_config * | interp_stack_config | ) |
Definition at line 1149 of file interp_stack_config.c.
|
static |
Definition at line 177 of file interp_stack_config.c.
|
static |
|
static |
void yac_interp_stack_config_entry_get_average | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
enum yac_interp_avg_weight_type * | reduction_type, | ||
int * | partial_coverage ) |
Definition at line 1551 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_check | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
char const ** | constructor_key, | ||
char const ** | do_search_key ) |
Definition at line 1672 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_conservative | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
int * | order, | ||
int * | enforced_conserv, | ||
int * | partial_coverage, | ||
enum yac_interp_method_conserv_normalisation * | normalisation ) |
Definition at line 1597 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_creep | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
int * | creep_distance ) |
Definition at line 1685 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_fixed | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
double * | value ) |
Definition at line 1660 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_ncc | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
enum yac_interp_ncc_weight_type * | type, | ||
int * | partial_coverage ) |
Definition at line 1565 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_nnn | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
enum yac_interp_nnn_weight_type * | type, | ||
size_t * | n, | ||
double * | max_search_distance, | ||
double * | scale ) |
Definition at line 1579 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_spmap | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
double * | spread_distance, | ||
double * | max_search_distance, | ||
enum yac_interp_spmap_weight_type * | weight_type, | ||
enum yac_interp_spmap_scale_type * | 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 ) |
Definition at line 1613 of file interp_stack_config.c.
enum yac_interpolation_list yac_interp_stack_config_entry_get_type | ( | union yac_interp_stack_config_entry const * | interp_stack_entry | ) |
void yac_interp_stack_config_entry_get_user_callback | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
char const ** | func_compute_weights_key ) |
Definition at line 1697 of file interp_stack_config.c.
void yac_interp_stack_config_entry_get_user_file | ( | union yac_interp_stack_config_entry const * | interp_stack_entry, |
char const ** | filename ) |
Definition at line 1648 of file interp_stack_config.c.
struct interp_method ** yac_interp_stack_config_generate | ( | struct yac_interp_stack_config * | interp_stack | ) |
Definition at line 351 of file interp_stack_config.c.
union yac_interp_stack_config_entry const * yac_interp_stack_config_get_entry | ( | struct yac_interp_stack_config * | interp_stack, |
size_t | interp_stack_idx ) |
|
static |
Definition at line 529 of file interp_stack_config.c.
size_t yac_interp_stack_config_get_pack_size | ( | struct yac_interp_stack_config * | interp_stack, |
MPI_Comm | comm ) |
Definition at line 602 of file interp_stack_config.c.
size_t yac_interp_stack_config_get_size | ( | struct yac_interp_stack_config * | interp_stack | ) |
|
static |
struct yac_interp_stack_config * yac_interp_stack_config_new | ( | ) |
Definition at line 1128 of file interp_stack_config.c.
void yac_interp_stack_config_pack | ( | struct yac_interp_stack_config * | interp_stack, |
void * | buffer, | ||
int | buffer_size, | ||
int * | position, | ||
MPI_Comm | comm ) |
Definition at line 826 of file interp_stack_config.c.
|
static |
Definition at line 679 of file interp_stack_config.c.
|
static |
struct yac_interp_stack_config * yac_interp_stack_config_unpack | ( | void * | buffer, |
int | buffer_size, | ||
int * | position, | ||
MPI_Comm | comm ) |
Definition at line 1102 of file interp_stack_config.c.
|
static |
Definition at line 932 of file interp_stack_config.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 500 of file interp_stack_config.c.
|
static |
Definition at line 640 of file interp_stack_config.c.
|
static |
|
static |
Definition at line 890 of file interp_stack_config.c.
|
static |
Definition at line 166 of file interp_stack_config.c.