YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_interp_method_file_parallel.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "tests.h"
#include "test_common.h"
#include "geometry.h"
#include "interpolation/methods/interp_method.h"
#include "interpolation/methods/interp_method_file.h"
#include "interpolation/methods/interp_method_fixed.h"
#include "dist_grid_utils.h"
#include "interpolation/interp_grid_internal.h"
#include "yac_mpi.h"
#include "yac_mpi_common.h"
#include "weight_file_common.h"
#include <mpi.h>
#include <yaxt.h>
#include <netcdf.h>
Include dependency graph for test_interp_method_file_parallel.c:

Go to the source code of this file.

Enumerations

enum  { ON_SUCCESS_COUNT = sizeof(on_success_types) / sizeof(on_success_types[0]) }
 
enum  { ON_MISSING_FILE_COUNT }
 

Functions

static void on_missing_abort_handler (MPI_Comm comm, char const *msg, char const *source, int line)
 

Variables

double const tol = 1e-7
 
double const err_tol = 1e-14
 
char const src_grid_name [] = "src_grid"
 
char const tgt_grid_name [] = "tgt_grid"
 
char const file_name [] = "test_interp_method_file_parallel_weights.nc"
 
char const file_name_2 [] = "test_interp_method_file_parallel_weights_2.nc"
 
enum yac_interp_file_on_success on_success_types []
 
enum yac_interp_file_on_missing_file on_missing_file_types []
 
static MPI_Comm split_comm
 

Detailed Description

Test
A test for the parallel file interpolation method.

Definition in file test_interp_method_file_parallel.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ON_SUCCESS_COUNT 

Definition at line 45 of file test_interp_method_file_parallel.c.

◆ anonymous enum

anonymous enum
Enumerator
ON_MISSING_FILE_COUNT 

Definition at line 49 of file test_interp_method_file_parallel.c.

Function Documentation

◆ on_missing_abort_handler()

static void on_missing_abort_handler ( MPI_Comm comm,
char const * msg,
char const * source,
int line )
static

Definition at line 3381 of file test_interp_method_file_parallel.c.

Variable Documentation

◆ err_tol

double const err_tol = 1e-14

Definition at line 31 of file test_interp_method_file_parallel.c.

◆ file_name

char const file_name[] = "test_interp_method_file_parallel_weights.nc"

Definition at line 35 of file test_interp_method_file_parallel.c.

◆ file_name_2

char const file_name_2[] = "test_interp_method_file_parallel_weights_2.nc"

Definition at line 36 of file test_interp_method_file_parallel.c.

◆ on_missing_file_types

enum yac_interp_file_on_missing_file on_missing_file_types[]
Initial value:
=
@ YAC_INTERP_FILE_MISSING_CONT
continue on missing file
@ YAC_INTERP_FILE_MISSING_ERROR
abort on missing file

Definition at line 47 of file test_interp_method_file_parallel.c.

◆ on_success_types

enum yac_interp_file_on_success on_success_types[]
Initial value:

Definition at line 43 of file test_interp_method_file_parallel.c.

◆ split_comm

MPI_Comm split_comm
static

Definition at line 56 of file test_interp_method_file_parallel.c.

◆ src_grid_name

char const src_grid_name[] = "src_grid"

Definition at line 33 of file test_interp_method_file_parallel.c.

◆ tgt_grid_name

char const tgt_grid_name[] = "tgt_grid"

Definition at line 34 of file test_interp_method_file_parallel.c.

◆ tol

double const tol = 1e-7

Definition at line 30 of file test_interp_method_file_parallel.c.