netxsimdg
Loading...
Searching...
No Matches
ParaGrid_test.cpp File Reference
#include <doctest/doctest.h>
#include "include/Configurator.hpp"
#include "include/ConfiguredModule.hpp"
#include "include/NZLevels.hpp"
#include "include/ParaGridIO.hpp"
#include "include/ParametricGrid.hpp"
#include "include/gridNames.hpp"
#include "include/IStructureModule.hpp"
#include <cmath>
#include <filesystem>
#include <fstream>
#include <sstream>
#include <ncAtt.h>
#include <ncFile.h>
#include <ncGroup.h>
#include <ncVar.h>
Include dependency graph for ParaGrid_test.cpp:

Go to the source code of this file.

Macros

#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
 
#define TO_STR(s)
 
#define TO_STRI(s)
 
#define TEST_FILE_SOURCE   .
 

Functions

 Nextsim::TEST_SUITE_BEGIN ("ParaGrid")
 
 Nextsim::TEST_CASE ("Write and read a ModelState-based ParaGrid restart file")
 
 Nextsim::TEST_CASE ("Write a diagnostic ParaGrid file")
 
 Nextsim::TEST_CASE ("Test array ordering")
 
 Nextsim::TEST_SUITE_END ()
 

Variables

const std::string filename = "paraGrid_test.nc"
 
const std::string diagFile = "paraGrid_diag.nc"
 
size_t Nextsim::c = 0
 

Detailed Description

Date
Oct 27, 2022
Author
Tim Spain timot.nosp@m.hy.s.nosp@m.pain@.nosp@m.ners.nosp@m.c.no

Definition in file ParaGrid_test.cpp.

Macro Definition Documentation

◆ DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

Definition at line 8 of file ParaGrid_test.cpp.

◆ TEST_FILE_SOURCE

#define TEST_FILE_SOURCE   .

Definition at line 328 of file ParaGrid_test.cpp.

◆ TO_STR

#define TO_STR ( s)
Value:
TO_STRI(s)

Definition at line 325 of file ParaGrid_test.cpp.

◆ TO_STRI

#define TO_STRI ( s)
Value:
#s

Definition at line 326 of file ParaGrid_test.cpp.

Function Documentation

◆ TEST_CASE() [1/3]

Nextsim::TEST_CASE ( "Test array ordering" )

Definition at line 331 of file ParaGrid_test.cpp.

◆ TEST_CASE() [2/3]

Nextsim::TEST_CASE ( "Write a diagnostic ParaGrid file" )

Definition at line 187 of file ParaGrid_test.cpp.

◆ TEST_CASE() [3/3]

Nextsim::TEST_CASE ( "Write and read a ModelState-based ParaGrid restart file" )

Definition at line 41 of file ParaGrid_test.cpp.

Variable Documentation

◆ c

size_t Nextsim::c = 0

Definition at line 38 of file ParaGrid_test.cpp.

◆ diagFile

const std::string diagFile = "paraGrid_diag.nc"

Definition at line 30 of file ParaGrid_test.cpp.

◆ filename

const std::string filename = "paraGrid_test.nc"

Definition at line 29 of file ParaGrid_test.cpp.