YAC 3.8.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_dummy_coupling_c.c File Reference
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tests.h"
#include "test_common.h"
#include "yac.h"
#include "basic_grid.h"
Include dependency graph for test_dummy_coupling_c.c:

Go to the source code of this file.

Enumerations

enum  { NO_OF_FIELDS = sizeof(field) / sizeof(field[0]) , NBR_CELLS = 2 , NBR_VERTICES = 4 }
 

Functions

static void dummy_atmosphere ()
 
static void dummy_ocean ()
 
static void dummy_io ()
 

Variables

struct { 
 
   char const *   name 
 
   int   collection_size 
 
field [] 
 
char * yaml_filename
 
int nbr_vertices_per_cell [NBR_CELLS]
 
int info
 
int ierror
 
int comp_id
 
int comp_ids [1]
 
int cell_point_ids [1]
 
int cell_mask_ids [1]
 
int grid_id
 
int global_index [NBR_CELLS]
 
int cell_core_mask [NBR_CELLS]
 
double * buffer
 
double * buffer_lon
 
double * buffer_lat
 
int * cell_to_vertex
 
int * field_id
 
int * cell_mask
 
int flag
 

Detailed Description

Test
This example simulates a whole model setup with three components (ocean, atmosphere, io). It uses one process for each component.

Definition in file test_dummy_coupling_c.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NO_OF_FIELDS 
NBR_CELLS 
NBR_VERTICES 

Definition at line 38 of file test_dummy_coupling_c.c.

Function Documentation

◆ dummy_atmosphere()

static void dummy_atmosphere ( )
static

Definition at line 119 of file test_dummy_coupling_c.c.

Here is the call graph for this function:

◆ dummy_io()

static void dummy_io ( )
static

Definition at line 613 of file test_dummy_coupling_c.c.

Here is the call graph for this function:

◆ dummy_ocean()

static void dummy_ocean ( )
static

Definition at line 400 of file test_dummy_coupling_c.c.

Here is the call graph for this function:

Variable Documentation

◆ buffer

double* buffer

Definition at line 57 of file test_dummy_coupling_c.c.

◆ buffer_lat

double* buffer_lat
Examples
dummy_atmosphere_c.c, dummy_io_c.c, and dummy_ocean_c.c.

Definition at line 59 of file test_dummy_coupling_c.c.

◆ buffer_lon

double* buffer_lon
Examples
dummy_atmosphere_c.c, dummy_io_c.c, and dummy_ocean_c.c.

Definition at line 58 of file test_dummy_coupling_c.c.

◆ cell_core_mask

int cell_core_mask[NBR_CELLS]

Definition at line 55 of file test_dummy_coupling_c.c.

◆ cell_mask

int* cell_mask
Examples
dummy_atmosphere_c.c, dummy_io_c.c, and dummy_ocean_c.c.

Definition at line 63 of file test_dummy_coupling_c.c.

◆ cell_mask_ids

int cell_mask_ids[1]

Definition at line 50 of file test_dummy_coupling_c.c.

◆ cell_point_ids

int cell_point_ids[1]
Examples
dummy_atmosphere_c.c, dummy_io_c.c, and dummy_ocean_c.c.

Definition at line 49 of file test_dummy_coupling_c.c.

◆ cell_to_vertex

int* cell_to_vertex
Examples
dummy_atmosphere_c.c, dummy_io_c.c, and dummy_ocean_c.c.

Definition at line 60 of file test_dummy_coupling_c.c.

◆ collection_size

int collection_size

Definition at line 23 of file test_dummy_coupling_c.c.

◆ comp_id

int comp_id

Definition at line 46 of file test_dummy_coupling_c.c.

◆ comp_ids

int comp_ids[1]

Definition at line 47 of file test_dummy_coupling_c.c.

◆ [struct]

struct { ... } field[]
Initial value:
=
{{.name = "TAUX", .collection_size = 2},
{.name = "TAUY", .collection_size = 2},
{.name = "SFWFLX", .collection_size = 3},
{.name = "SFTEMP", .collection_size = 1},
{.name = "THFLX", .collection_size = 4},
{.name = "ICEATM", .collection_size = 4},
{.name = "SST", .collection_size = 1},
{.name = "OCEANU", .collection_size = 1},
{.name = "OCEANV", .collection_size = 1},
{.name = "ICEOCE", .collection_size = 5}}

◆ field_id

int* field_id

Definition at line 62 of file test_dummy_coupling_c.c.

◆ flag

int flag

Definition at line 65 of file test_dummy_coupling_c.c.

◆ global_index

int global_index[NBR_CELLS]

Definition at line 54 of file test_dummy_coupling_c.c.

◆ grid_id

int grid_id

Definition at line 52 of file test_dummy_coupling_c.c.

◆ ierror

int ierror

Definition at line 45 of file test_dummy_coupling_c.c.

◆ info

int info

Definition at line 45 of file test_dummy_coupling_c.c.

◆ name

char const* name

Definition at line 22 of file test_dummy_coupling_c.c.

◆ nbr_vertices_per_cell

int nbr_vertices_per_cell[NBR_CELLS]
Examples
dummy_atmosphere_c.c, dummy_io_c.c, and dummy_ocean_c.c.

Definition at line 43 of file test_dummy_coupling_c.c.

◆ yaml_filename

char* yaml_filename

Definition at line 36 of file test_dummy_coupling_c.c.