#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include "yac.h"
#include "yac_core.h"
#include "yac_utils.h"
Go to the source code of this file.
|
static void | dummy_compA (char const *configFilename, char const *gridPath) |
|
static void | dummy_compB (char const *configFilename) |
|
static void | parse_arguments (int argc, char **argv, char const **configFilenamem, char const **gridPath) |
|
static void | LLtoXYZ (double lon, double lat, double p_out[]) |
|
static int | compare_point_with_index (const void *a, const void *b) |
|
static void | remove_duplicated_vertices (double *temp_vertex_lon, double *temp_vertex_lat, int *temp_nbr_vertices, int *old_to_new_id) |
|
static void | read_compA_grid_data (char const *gridPath, int *nbr_vertices, int *nbr_cells, int **num_vertices_per_cell, int **cell_to_vertex, double **buffer_lonv, double **buffer_latv, double **buffer_lon, double **buffer_lat) |
|
◆ EXACT
◆ STR_USAGE
#define STR_USAGE "Usage: %s -c configFilename -g gridPath\n" |
◆ YAC_ASSERT_ARGS
#define YAC_ASSERT_ARGS |
( |
| exp, |
|
|
| msg ) |
Value: { \
if(!((exp))) { \
fprintf(stderr,
"ERROR: %s\n" STR_USAGE, msg, argv[0]); \
exit(EXIT_FAILURE); \
} \
}
Definition at line 50 of file toy_coupling.c.
◆ YAC_RAD
#define YAC_RAD (0.01745329251994329576923690768489) |
◆ compare_point_with_index()
static int compare_point_with_index |
( |
const void * | a, |
|
|
const void * | b ) |
|
static |
◆ dummy_compA()
static void dummy_compA |
( |
char const * | configFilename, |
|
|
char const * | gridPath ) |
|
static |
◆ dummy_compB()
static void dummy_compB |
( |
char const * | configFilename | ) |
|
|
static |
◆ LLtoXYZ()
static void LLtoXYZ |
( |
double | lon, |
|
|
double | lat, |
|
|
double | p_out[] ) |
|
inlinestatic |
◆ parse_arguments()
static void parse_arguments |
( |
int | argc, |
|
|
char ** | argv, |
|
|
char const ** | configFilenamem, |
|
|
char const ** | gridPath ) |
|
static |
◆ read_compA_grid_data()
static void read_compA_grid_data |
( |
char const * | gridPath, |
|
|
int * | nbr_vertices, |
|
|
int * | nbr_cells, |
|
|
int ** | num_vertices_per_cell, |
|
|
int ** | cell_to_vertex, |
|
|
double ** | buffer_lonv, |
|
|
double ** | buffer_latv, |
|
|
double ** | buffer_lon, |
|
|
double ** | buffer_lat ) |
|
static |
◆ remove_duplicated_vertices()
static void remove_duplicated_vertices |
( |
double * | temp_vertex_lon, |
|
|
double * | temp_vertex_lat, |
|
|
int * | temp_nbr_vertices, |
|
|
int * | old_to_new_id ) |
|
static |
◆ buffer
◆ cell_core_mask
◆ cell_point_id
◆ comp_id
◆ comp_ids
◆ field_id
◆ fieldName
◆ global_index
◆ grid_id
◆ ierror
◆ info
◆ nbr_fields
◆ no_of_fields
const int no_of_fields = 2 |
◆ recv_buffer
◆ send_buffer