|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Integration test for the EulerEvaluator pipeline: fdt -> frhs -> fsolve. More...
#include "doctest.h"#include "Euler/EulerSolver.hpp"#include <fstream>#include <iostream>#include <iomanip>#include <filesystem>Go to the source code of this file.
Macros | |
| #define | DOCTEST_CONFIG_IMPLEMENT |
Functions | |
| template<EulerModel model> | |
| std::array< real, 3 > | runOneNewtonStep (const std::string &cfgPath) |
| CHECK (std::isfinite(rhsDensity)) | |
| CHECK (std::isfinite(rhsEnergy)) | |
| CHECK (std::isfinite(incL2)) | |
| CHECK (rhsDensity > 0) | |
| if(g_mpi.rank==0) std | CHECK (rhsDensity==doctest::Approx(goldenRhsDensity).epsilon(1e-6)) |
| CHECK (incL2==doctest::Approx(goldenIncL2).epsilon(1e-6)) | |
| int | main (int argc, char **argv) |
Variables | |
| std::string | cfgPath |
| if(g_mpi.rank==0) std | auto [rhsDensity, rhsEnergy, incL2] = runOneNewtonStep<NS>(cfgPath) |
| real | goldenRhsDensity = 1.0524823780e+01 |
| real | goldenIncL2 = 3.1557730986e+00 |
Integration test for the EulerEvaluator pipeline: fdt -> frhs -> fsolve.
Exercises the full evaluator pipeline on three configurations:
For each case the test:
This is an MPI test registered at np=1, 2, 4. Golden value sentinel: 1e300 means not yet acquired.
Definition in file test_EulerEvaluator.cpp.
| #define DOCTEST_CONFIG_IMPLEMENT |
Definition at line 21 of file test_EulerEvaluator.cpp.
| CHECK | ( | incL2 | = =doctest::Approx(goldenIncL2).epsilon(1e-6) | ) |
| CHECK | ( | rhsDensity | , |
| 0 | |||
| ) |
| if(g_mpi.rank==0) std CHECK | ( | rhsDensity | = =doctest::Approx(goldenRhsDensity).epsilon(1e-6) | ) |
| CHECK | ( | std::isfinite(incL2) | ) |
| CHECK | ( | std::isfinite(rhsDensity) | ) |
| CHECK | ( | std::isfinite(rhsEnergy) | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| std::array< real, 3 > runOneNewtonStep | ( | const std::string & | cfgPath | ) |
| if (g_mpi.rank == 0) std auto[rhsDensity, rhsEnergy, incL2] = runOneNewtonStep<NS>(cfgPath) |
Definition at line 243 of file test_EulerEvaluator.cpp.
| std::string cfgPath |
Definition at line 234 of file test_EulerEvaluator.cpp.
| real goldenIncL2 = 3.1557730986e+00 |
Definition at line 252 of file test_EulerEvaluator.cpp.
| real goldenRhsDensity = 1.0524823780e+01 |
Definition at line 251 of file test_EulerEvaluator.cpp.