YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_yac_pak_mci.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <mpi.h>
#include "io_utils.h"
#include "tests.h"
#include "yac.h"
#include "test_yac_pak_common.h"
Include dependency graph for test_yac_pak_mci.c:

Go to the source code of this file.

Macros

#define YAC_RAD   (0.01745329251994329576923690768489)
 
#define SETUP_REGION_NAME   "distributed grid pair generation"
 
#define UTEST_COL_FIELD   1
 
#define UTEST_COL_TYPE   4
 
#define UTEST_COL_DATETIME   6
 
#define UTEST_COL_TSTART   8
 
#define UTEST_COL_TEND   9
 

Detailed Description

Test
Integration tests for YAC PAK through the MCI layer (yac.c). Must be run with 2 MPI ranks. Rank 0 acts as source ("atm"), rank 1 as target ("ocn").

Tests:

  1. Test setup and coupling event content (via explicit instance API): INIT, DEF_COMP, ENDDEF, PUT/GET, FINALIZE through yac_cinit_comm_instance(), yac_cdef_comp_instance(), yac_cenddef_instance(), yac_cput()/yac_cget(), yac_cfinalize_instance().
  2. Without YAC_PAK_TRACE_SETUP: only coupling events (PUT/GET) appear.
  3. Level-2 tracing: record a nested REGION event inside the coupling.
  4. Test setup-phase region gating.
  5. Test YAC_PAK_TRACE_AUTOFLUSH=0: flush suppressed by yac_cfinalize().
  6. Test YAC_PAK_TRACE_CONFIG=1: coupling_config.yaml is written.
  7. Test YAC_PAK_TRACE_CONFIG=0: coupling_config.yaml is not written.
  8. UPDATE/AGET/WAIT appear at level 1. WAIT carries the datetime of the exchange it completes.
  9. Test with mapping on target, a level-2 REGION is nested in the WAIT.

Definition in file test_yac_pak_mci.c.

Macro Definition Documentation

◆ SETUP_REGION_NAME

#define SETUP_REGION_NAME   "distributed grid pair generation"

Definition at line 40 of file test_yac_pak_mci.c.

◆ UTEST_COL_DATETIME

#define UTEST_COL_DATETIME   6

Definition at line 44 of file test_yac_pak_mci.c.

◆ UTEST_COL_FIELD

#define UTEST_COL_FIELD   1

Definition at line 42 of file test_yac_pak_mci.c.

◆ UTEST_COL_TEND

#define UTEST_COL_TEND   9

Definition at line 46 of file test_yac_pak_mci.c.

◆ UTEST_COL_TSTART

#define UTEST_COL_TSTART   8

Definition at line 45 of file test_yac_pak_mci.c.

◆ UTEST_COL_TYPE

#define UTEST_COL_TYPE   4

Definition at line 43 of file test_yac_pak_mci.c.

◆ YAC_RAD

#define YAC_RAD   (0.01745329251994329576923690768489)

Definition at line 39 of file test_yac_pak_mci.c.