PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
testDeckRoundTrip.cpp File Reference
#include "inp/deckIncludes.h"
#include "geom/geomObjectsUtil.h"
#include "util/io.h"
#include "util/json.h"
#include "util/point.h"
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
Include dependency graph for testDeckRoundTrip.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{testDeckRoundTrip.cpp}
 

Functions

void anonymous_namespace{testDeckRoundTrip.cpp}::check (bool ok, const std::string &what)
 
void anonymous_namespace{testDeckRoundTrip.cpp}::checkClose (double got, double want, const std::string &what, double tol=1.0e-12)
 
void anonymous_namespace{testDeckRoundTrip.cpp}::checkIsObject (const json &j, const std::string &key)
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testModelDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testOutputDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testMaterialDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testMeshDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testContactPairDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testContactDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testNeighborAndGenDecks ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testTestDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testBCBaseDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::testBCDeck ()
 
void anonymous_namespace{testDeckRoundTrip.cpp}::run (void(*fn)(), const std::string &name)
 
int main ()
 

Variables

int anonymous_namespace{testDeckRoundTrip.cpp}::g_failures = 0
 
int anonymous_namespace{testDeckRoundTrip.cpp}::g_checks = 0
 

Function Documentation

◆ main()

int main ( )

Definition at line 369 of file testDeckRoundTrip.cpp.

369 {
370 std::cout << "Deck factory round-trip\n"
371 << "-----------------------\n";
372 run(testModelDeck, "ModelDeck");
373 run(testOutputDeck, "OutputDeck");
374 run(testMaterialDeck, "MaterialDeck");
375 run(testMeshDeck, "MeshDeck");
376 run(testContactPairDeck, "ContactPairDeck");
377 run(testContactDeck, "ContactDeck");
378 run(testNeighborAndGenDecks, "PNeighborDeck/PGenDeck");
379 run(testTestDeck, "TestDeck");
380 run(testBCBaseDeck, "BCBaseDeck");
381 run(testBCDeck, "BCDeck");
382
383 std::cout << "-----------------------\n"
384 << g_checks - g_failures << " / " << g_checks << " checks passed\n";
385 if (g_failures > 0) {
386 std::cerr << g_failures << " check(s) failed\n";
387 return 1;
388 }
389 return 0;
390}
Definition run.py:1

References anonymous_namespace{testDeckRoundTrip.cpp}::g_checks, anonymous_namespace{testDeckRoundTrip.cpp}::g_failures, anonymous_namespace{testDeckRoundTrip.cpp}::testBCBaseDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testBCDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testContactDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testContactPairDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testMaterialDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testMeshDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testModelDeck(), anonymous_namespace{testDeckRoundTrip.cpp}::testNeighborAndGenDecks(), anonymous_namespace{testDeckRoundTrip.cpp}::testOutputDeck(), and anonymous_namespace{testDeckRoundTrip.cpp}::testTestDeck().

Here is the call graph for this function: