|
Tsunami Project Lab
|
#include "TsunamiEvent2d.h"#include "ArtificialTsunami2d.h"#include <catch2/catch.hpp>#include <cmath>#include <cstdio>#include <netcdf.h>#include <string>#include <vector>
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]") | |
| #define _USE_MATH_DEFINES |
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.
| TEST_CASE | ( | "TsunamiEvent2d matches ArtificialTsunami2d on the supplied course datasets" | , |
| "" | [TsunamiEvent2d][CourseDataset] ) |
| TEST_CASE | ( | "TsunamiEvent2d reproduces ArtificialTsunami2d on a synthesised file pair" | , |
| "" | [TsunamiEvent2d] ) |
| TEST_CASE | ( | "TsunamiEvent2d treats out-of-bbox queries: bathy | clamps, |
| displ zeroes" | , | ||
| "" | [TsunamiEvent2d] ) |