Tsunami Project Lab
Loading...
Searching...
No Matches
TsunamiEvent2d.test.cpp File Reference
#include "TsunamiEvent2d.h"
#include "ArtificialTsunami2d.h"
#include <catch2/catch.hpp>
#include <cmath>
#include <cstdio>
#include <netcdf.h>
#include <string>
#include <vector>
Include dependency graph for TsunamiEvent2d.test.cpp:

Macros

#define _USE_MATH_DEFINES
 

Functions

 TEST_CASE ("TsunamiEvent2d reproduces ArtificialTsunami2d on a synthesised file pair", "[TsunamiEvent2d]")
 
 TEST_CASE ("TsunamiEvent2d treats out-of-bbox queries: bathy clamps, displ zeroes", "[TsunamiEvent2d]")
 
 TEST_CASE ("TsunamiEvent2d matches ArtificialTsunami2d on the supplied course datasets", "[TsunamiEvent2d][CourseDataset]")
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES
Author
Moritz Arnhold, Moritz Martin

DESCRIPTION

Unit tests for setups::TsunamiEvent2d (assignment 5.2 task 3 + 4).

The verification path: synthesise the same scenario as setups::ArtificialTsunami2d as a pair of netCDF files, then assert that TsunamiEvent2d returns identical fields at the synthesised cell centres. This anticipates assignment 5.2 task 4, which uses the supplied artificialtsunami_*_1000.nc files for the same check.

Function Documentation

◆ TEST_CASE() [1/3]

TEST_CASE ( "TsunamiEvent2d matches ArtificialTsunami2d on the supplied course datasets" ,
"" [TsunamiEvent2d][CourseDataset] )

◆ TEST_CASE() [2/3]

TEST_CASE ( "TsunamiEvent2d reproduces ArtificialTsunami2d on a synthesised file pair" ,
"" [TsunamiEvent2d] )

◆ TEST_CASE() [3/3]

TEST_CASE ( "TsunamiEvent2d treats out-of-bbox queries: bathy clamps,
displ zeroes" ,
"" [TsunamiEvent2d] )