Peano
Loading...
Searching...
No Matches
exahype2::blockstructured::tests::DirichletBoundaryConditionsTest Class Reference

Test exahype2::blockstructured::applyDirichletBoundaryConditions() More...

#include <DirichletBoundaryConditionsTest.h>

Inheritance diagram for exahype2::blockstructured::tests::DirichletBoundaryConditionsTest:
Collaboration diagram for exahype2::blockstructured::tests::DirichletBoundaryConditionsTest:

Public Member Functions

 DirichletBoundaryConditionsTest ()
 
void run () override
 This routine is triggered by the TestCaseCollection.
 
- Public Member Functions inherited from tarch::tests::TestCase
 TestCase (const std::string &testCaseName)
 Constructor.
 
virtual ~TestCase ()
 Destructor.
 
int getNumberOfErrors () const
 
std::string getTestCaseName () const
 

Private Member Functions

void testLowerBoundary ()
 Face on the lower boundary along each axis: the left half of the face is set, layer 0 adjacent to the face, the right half is untouched.
 
void testUpperBoundary ()
 Face on the upper boundary along each axis: the right half of the face is set, the left half is untouched.
 
void testPeriodicBoundaryIsSkipped ()
 Boundary faces along periodic axes are left unchanged.
 
void testInteriorFaceIsSkipped ()
 Faces within the domain are left unchanged.
 

Additional Inherited Members

- Protected Member Functions inherited from tarch::tests::TestCase
 TestCase ()=delete
 
- Protected Attributes inherited from tarch::tests::TestCase
const std::string _testCaseName
 Name of the test case.
 
int _errors
 Error counter.
 
bool _error
 Indicate within macro if one specific validation failed.
 

Detailed Description

Test exahype2::blockstructured::applyDirichletBoundaryConditions()

All tests work over the unit square/cube with patches of three grid cells per axis, an overlap of two, and three doubles per grid cell. The boundary condition functor stores the ghost cell's position along the face normal, its position along the next axis, and the time stamp, so the tests can validate where the routine has placed each ghost cell. Entries the routine is not supposed to touch are initialised with a marker value and have to keep it.

Definition at line 29 of file DirichletBoundaryConditionsTest.h.

Constructor & Destructor Documentation

◆ DirichletBoundaryConditionsTest()

exahype2::blockstructured::tests::DirichletBoundaryConditionsTest::DirichletBoundaryConditionsTest ( )

Member Function Documentation

◆ run()

void exahype2::blockstructured::tests::DirichletBoundaryConditionsTest::run ( )
overridevirtual

This routine is triggered by the TestCaseCollection.

Implements tarch::tests::TestCase.

◆ testInteriorFaceIsSkipped()

void exahype2::blockstructured::tests::DirichletBoundaryConditionsTest::testInteriorFaceIsSkipped ( )
private

Faces within the domain are left unchanged.

◆ testLowerBoundary()

void exahype2::blockstructured::tests::DirichletBoundaryConditionsTest::testLowerBoundary ( )
private

Face on the lower boundary along each axis: the left half of the face is set, layer 0 adjacent to the face, the right half is untouched.

◆ testPeriodicBoundaryIsSkipped()

void exahype2::blockstructured::tests::DirichletBoundaryConditionsTest::testPeriodicBoundaryIsSkipped ( )
private

Boundary faces along periodic axes are left unchanged.

◆ testUpperBoundary()

void exahype2::blockstructured::tests::DirichletBoundaryConditionsTest::testUpperBoundary ( )
private

Face on the upper boundary along each axis: the right half of the face is set, the left half is untouched.


The documentation for this class was generated from the following file: