![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Functions | |
| void | check (bool ok, const std::string &what) |
| void | checkClose (double got, double want, const std::string &what, double tol=1.0e-12) |
| void | checkIsObject (const json &j, const std::string &key) |
| void | testModelDeck () |
| void | testOutputDeck () |
| void | testMaterialDeck () |
| void | testMeshDeck () |
| void | testContactPairDeck () |
| void | testContactDeck () |
| void | testNeighborAndGenDecks () |
| void | testTestDeck () |
| void | testBCBaseDeck () |
| void | testBCDeck () |
| void | run (void(*fn)(), const std::string &name) |
Variables | |
| int | g_failures = 0 |
| int | g_checks = 0 |
| void anonymous_namespace{testDeckRoundTrip.cpp}::check | ( | bool | ok, |
| const std::string & | what | ||
| ) |
Definition at line 39 of file testDeckRoundTrip.cpp.
References g_checks, and g_failures.
Referenced by checkClose(), checkIsObject(), testBCBaseDeck(), testBCDeck(), testContactDeck(), testContactPairDeck(), testMaterialDeck(), testMeshDeck(), testModelDeck(), testNeighborAndGenDecks(), testOutputDeck(), and testTestDeck().
| void anonymous_namespace{testDeckRoundTrip.cpp}::checkClose | ( | double | got, |
| double | want, | ||
| const std::string & | what, | ||
| double | tol = 1.0e-12 |
||
| ) |
Definition at line 47 of file testDeckRoundTrip.cpp.
References check().
Referenced by testBCBaseDeck(), testContactPairDeck(), testMaterialDeck(), testMeshDeck(), testModelDeck(), and testNeighborAndGenDecks().
| void anonymous_namespace{testDeckRoundTrip.cpp}::checkIsObject | ( | const json & | j, |
| const std::string & | key | ||
| ) |
The readers call at() and value() on these blocks, so each is an object.
Definition at line 55 of file testDeckRoundTrip.cpp.
References check().
Referenced by testBCBaseDeck(), testBCDeck(), and testTestDeck().
| void anonymous_namespace{testDeckRoundTrip.cpp}::run | ( | void(*)() | fn, |
| const std::string & | name | ||
| ) |
A malformed block makes the reader throw. Recording that as a failed check rather than letting it propagate lets the remaining decks run, so one report names every deck that disagrees.
Definition at line 357 of file testDeckRoundTrip.cpp.
References g_checks, and g_failures.
| void anonymous_namespace{testDeckRoundTrip.cpp}::testBCBaseDeck | ( | ) |
Definition at line 281 of file testDeckRoundTrip.cpp.
References check(), checkClose(), checkIsObject(), geom::createGeomObject(), inp::BCBaseDeck::d_direction, geom::GeomData::d_geomName, geom::GeomData::d_geomParams, inp::BCBaseDeck::d_icType, inp::BCBaseDeck::d_icVec, inp::BCBaseDeck::d_isDisplacementZero, inp::BCBaseDeck::d_isRegionActive, inp::BCBaseDeck::d_pList, inp::BCBaseDeck::d_pNotList, inp::BCBaseDeck::d_regionGeomData, inp::BCBaseDeck::d_spatialFnType, inp::BCBaseDeck::d_timeFnParams, inp::BCBaseDeck::d_timeFnType, util::Point::d_y, inp::BCBaseDeck::getExampleJson(), and inp::BCBaseDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testBCDeck | ( | ) |
Definition at line 338 of file testDeckRoundTrip.cpp.
References check(), checkIsObject(), inp::BCDeck::getExampleJson(), and util::Point::toVec().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testContactDeck | ( | ) |
Definition at line 224 of file testDeckRoundTrip.cpp.
References check(), and inp::ContactDeck::getExampleJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testContactPairDeck | ( | ) |
Definition at line 184 of file testDeckRoundTrip.cpp.
References check(), checkClose(), inp::ContactPairDeck::getExampleJson(), and inp::ContactPairDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testMaterialDeck | ( | ) |
Definition at line 112 of file testDeckRoundTrip.cpp.
References check(), checkClose(), inp::MaterialDeck::getExampleJson(), and inp::MaterialDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testMeshDeck | ( | ) |
Definition at line 150 of file testDeckRoundTrip.cpp.
References check(), checkClose(), inp::MeshDeck::getExampleJson(), and inp::MeshDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testModelDeck | ( | ) |
Definition at line 61 of file testDeckRoundTrip.cpp.
References check(), checkClose(), inp::ModelDeck::getExampleJson(), and inp::ModelDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testNeighborAndGenDecks | ( | ) |
Definition at line 234 of file testDeckRoundTrip.cpp.
References check(), checkClose(), inp::PGenDeck::getExampleJson(), inp::PNeighborDeck::getExampleJson(), and inp::PNeighborDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testOutputDeck | ( | ) |
Definition at line 86 of file testDeckRoundTrip.cpp.
References check(), inp::OutputDeck::getExampleJson(), and inp::OutputDeck::readFromJson().
Referenced by main().
| void anonymous_namespace{testDeckRoundTrip.cpp}::testTestDeck | ( | ) |
Definition at line 252 of file testDeckRoundTrip.cpp.
References check(), checkIsObject(), inp::TestDeck::d_particleForceDirectionCompressiveTest, inp::TestDeck::d_particleIdCompressiveTest, inp::TestDeck::d_testName, inp::TestDeck::getExampleJson(), and inp::TestDeck::readFromJson().
Referenced by main().
| int anonymous_namespace{testDeckRoundTrip.cpp}::g_checks = 0 |
Definition at line 37 of file testDeckRoundTrip.cpp.
| int anonymous_namespace{testDeckRoundTrip.cpp}::g_failures = 0 |
Definition at line 36 of file testDeckRoundTrip.cpp.