13#ifdef UseTestSpecificCompilerSettings
14#pragma optimize("",off)
19 TestCase(
"peano4::grid::tests::GridTraversalEventGeneratorTest" ) {
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 );
367 {0.0123457,0.0123457},
369 std::bitset<Dimensions>(2),
379 std::set<int>(), std::set<int>(), std::set<int>(),
380 relativePositionToFather,
true
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.
static FaceType getFaceType(GridVertex coarseGridVertices[TwoPowerD], tarch::la::Vector< Dimensions, int > positionOfCell, int faceNumber)
Identify type of vertex.
GridTraversalEvent createGenericCellTraversalEvent(GridVertex coarseGridVertices[TwoPowerD], GridVertex fineGridVertices[TwoPowerD], const AutomatonState &state, const SplitSpecification &splitTriggered, const std::set< int > &splitting, const std::set< int > &joinTriggered, const std::set< int > &joining, const tarch::la::Vector< Dimensions, int > &relativePositionToFather, bool spacetreeStateIsRunning) const
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
tarch::la::SmartPointerVector< Size, NewScalarType > convertScalar(const tarch::la::SmartPointerVector< Size, Scalar > &SmartPointerVector)
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)