13#ifdef UseTestSpecificCompilerSettings
14#pragma optimize("",off)
19 TestCase(
"peano4::grid::tests::GridTraversalEventGeneratorTest" ) {
96 std::bitset<TwoTimesD> result = generator.areFacesLocal( vertices,
SplitSpecification(), std::set<int>(), std::set<int>(), std::set<int>() );
117 auto result = generator.getFaceType( coarseGridVertices, {2,2}, 0 );
120 result = generator.getFaceType( coarseGridVertices, {2,2}, 1 );
123 result = generator.getFaceType( coarseGridVertices, {2,2}, 2 );
126 result = generator.getFaceType( coarseGridVertices, {2,2}, 3 );
140 vertices[kScalar].setX(tarch::la::convertScalar<double>(k));
367 {0.0123457,0.0123457},
369 std::bitset<Dimensions>(2),
379 std::set<int>(), std::set<int>(), std::set<int>(),
380 relativePositionToFather, true
397 testMethod( testCreateGenericCellTraversalEvent1 );
401 testMethod( testCreateEnterCellTraversalEvent1 );
402 testMethod( testCreateLeaveCellTraversalEvent1 );
406#ifdef UseTestSpecificCompilerSettings
407#pragma optimize("",on)
#define dfor2(counter)
Shortcut For dfor(counter,2)
#define validateEqualsWithParams1(actualValue, validValue, param0)
#define testMethod(name)
Run a test method and check for errors.
#define validateWithParams1(booleanExpr, param0)
Translate grid traversal automaton's transitions into user events.
std::bitset< TwoTimesD > areFacesLocal(GridVertex vertices[TwoPowerD], const SplitSpecification &splitTriggered, const std::set< int > &splitting, const std::set< int > &joinTriggered, const std::set< int > &joining) const
Identifies for the faces whether they are local or not.
void testCreateLeaveCellTraversalEvent1()
void testCreateEnterCellTraversalEvent1()
void testAreFacesLocal1()
virtual void run() override
This routine is triggered by the TestCaseCollection.
static tarch::logging::Log _log
Logging device.
GridTraversalEventGeneratorTest()
void testAreFacesLocal2()
A simple setup that I extracted from a bug in the code:
void testGetFaceType()
Test face state identification.
void testCreateGenericCellTraversalEvent1()
std::string toString(VertexType type)
constexpr int InvalidRank(-1)
std::map< int, SplitInstruction > SplitSpecification
void setBackupOfAdjacentRanks(const tarch::la::Vector< TwoPowerD, int > &value)
void setIsAntecessorOfRefinedVertexInCurrentTreeSweep(bool value)
void setHasBeenAntecessorOfRefinedVertexInPreviousTreeSweep(bool value)
void setState(State value)
void setAdjacentRanks(const tarch::la::Vector< TwoPowerD, int > &value)