YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_interpolation_parallel4.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <string.h>
#include <mpi.h>
#include "tests.h"
#include "test_common.h"
#include "weight_file_common.h"
#include "dist_grid_utils.h"
#include "grids/dist_grid.h"
#include "interpolation/interp_grid.h"
#include "geometry.h"
#include "interpolation/interp_weights.h"
#include "interpolation/methods/interp_method_avg.h"
#include "interpolation/methods/interp_method_file.h"
Include dependency graph for test_interpolation_parallel4.c:

Go to the source code of this file.

Macros

#define YAC_RAD   (0.01745329251994329576923690768489)
 
#define NUM_CELLS_X   128
 
#define NUM_CELLS_Y   128
 
#define NUM_CELLS_X_2   64
 
#define NUM_CELLS_Y_2   64
 

Variables

unsigned num_links_file = 4*NUM_CELLS_X_2*NUM_CELLS_Y_2
 
int src_address_file [NUM_CELLS_Y_2][NUM_CELLS_X_2][4]
 
int tgt_address_file [NUM_CELLS_Y_2][NUM_CELLS_X_2][4]
 
double weights_file [NUM_CELLS_Y_2][NUM_CELLS_X_2][4]
 
char const weight_file_in []
 
char const weight_file_out []
 
char const src_grid_name [] = "src_grid"
 
char const tgt_grid_name [] = "tgt_grid"
 
unsigned ref_num_links = 4*NUM_CELLS_X*NUM_CELLS_Y
 
int ref_src_address [NUM_CELLS_Y][NUM_CELLS_X][4]
 
int ref_tgt_address [NUM_CELLS_Y][NUM_CELLS_X][4]
 
double ref_weights [NUM_CELLS_Y][NUM_CELLS_X][4]
 
int const * ref_tgt_address_fixed = NULL
 
double const * ref_fixed_values = NULL
 
int const * ref_num_tgt_per_fixed_value = NULL
 
unsigned ref_num_fixed_values = 0
 
unsigned cyclic [2] = {0,0}
 
double global_coordinates_x [NUM_CELLS_X+1]
 
double global_coordinates_y [NUM_CELLS_X+1]
 
int with_halo = 1
 

Detailed Description

Test
A test for internal interpolation routines.

Definition in file test_interpolation_parallel4.c.

Macro Definition Documentation

◆ NUM_CELLS_X

#define NUM_CELLS_X   128

Definition at line 32 of file test_interpolation_parallel4.c.

◆ NUM_CELLS_X_2

#define NUM_CELLS_X_2   64

Definition at line 34 of file test_interpolation_parallel4.c.

◆ NUM_CELLS_Y

#define NUM_CELLS_Y   128

Definition at line 33 of file test_interpolation_parallel4.c.

◆ NUM_CELLS_Y_2

#define NUM_CELLS_Y_2   64

Definition at line 35 of file test_interpolation_parallel4.c.

◆ YAC_RAD

#define YAC_RAD   (0.01745329251994329576923690768489)

Definition at line 29 of file test_interpolation_parallel4.c.

Variable Documentation

◆ cyclic

unsigned cyclic[2] = {0,0}

Definition at line 73 of file test_interpolation_parallel4.c.

◆ global_coordinates_x

double global_coordinates_x[NUM_CELLS_X+1]

Definition at line 74 of file test_interpolation_parallel4.c.

◆ global_coordinates_y

double global_coordinates_y[NUM_CELLS_X+1]

Definition at line 75 of file test_interpolation_parallel4.c.

◆ num_links_file

unsigned num_links_file = 4*NUM_CELLS_X_2*NUM_CELLS_Y_2

Definition at line 48 of file test_interpolation_parallel4.c.

◆ ref_fixed_values

double const* ref_fixed_values = NULL

Definition at line 68 of file test_interpolation_parallel4.c.

◆ ref_num_fixed_values

unsigned ref_num_fixed_values = 0

Definition at line 70 of file test_interpolation_parallel4.c.

◆ ref_num_links

unsigned ref_num_links = 4*NUM_CELLS_X*NUM_CELLS_Y

Definition at line 61 of file test_interpolation_parallel4.c.

◆ ref_num_tgt_per_fixed_value

int const* ref_num_tgt_per_fixed_value = NULL

Definition at line 69 of file test_interpolation_parallel4.c.

◆ ref_src_address

int ref_src_address[NUM_CELLS_Y][NUM_CELLS_X][4]

Definition at line 63 of file test_interpolation_parallel4.c.

◆ ref_tgt_address

int ref_tgt_address[NUM_CELLS_Y][NUM_CELLS_X][4]

Definition at line 64 of file test_interpolation_parallel4.c.

◆ ref_tgt_address_fixed

int const* ref_tgt_address_fixed = NULL

Definition at line 67 of file test_interpolation_parallel4.c.

◆ ref_weights

double ref_weights[NUM_CELLS_Y][NUM_CELLS_X][4]

Definition at line 65 of file test_interpolation_parallel4.c.

◆ src_address_file

int src_address_file[NUM_CELLS_Y_2][NUM_CELLS_X_2][4]

Definition at line 49 of file test_interpolation_parallel4.c.

◆ src_grid_name

char const src_grid_name[] = "src_grid"

Definition at line 57 of file test_interpolation_parallel4.c.

◆ tgt_address_file

int tgt_address_file[NUM_CELLS_Y_2][NUM_CELLS_X_2][4]

Definition at line 50 of file test_interpolation_parallel4.c.

◆ tgt_grid_name

char const tgt_grid_name[] = "tgt_grid"

Definition at line 58 of file test_interpolation_parallel4.c.

◆ weight_file_in

char const weight_file_in[]
Initial value:
=
"test_interpolation_parallel4_weight_file_in.nc"

Definition at line 53 of file test_interpolation_parallel4.c.

◆ weight_file_out

char const weight_file_out[]
Initial value:
=
"test_interpolation_parallel4_weight_file_out.nc"

Definition at line 55 of file test_interpolation_parallel4.c.

◆ weights_file

double weights_file[NUM_CELLS_Y_2][NUM_CELLS_X_2][4]

Definition at line 51 of file test_interpolation_parallel4.c.

◆ with_halo

int with_halo = 1

Definition at line 76 of file test_interpolation_parallel4.c.