|
Peano
|
#include <InterpolationTest.h>


Public Member Functions | |
| InterpolationTest () | |
| Cosntructor. | |
| virtual | ~InterpolationTest ()=default |
| Destructor, empty. | |
| virtual 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 | testRestrictHaloLayer_AoS_averaging () |
| void | testRestrictCellForBreakingDam () |
| void | testInterpolateCellDataAssociatedToVolumesIntoOverlappingCell_linear () |
| Trivial interpolation test for constant data. | |
| void | testHangingFacesForAnyOverlap () |
| Interpolate onto hanging faces and restrict from them for overlaps of one, two and three. | |
| void | testCellInterpolation () |
| Interpolate a coarse patch into its 3^d children. | |
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. | |
Definition at line 17 of file InterpolationTest.h.
| toolbox::blockstructured::tests::InterpolationTest::InterpolationTest | ( | ) |
Cosntructor.
|
virtualdefault |
Destructor, empty.
|
overridevirtual |
This routine is triggered by the TestCaseCollection.
Implements tarch::tests::TestCase.
|
private |
Interpolate a coarse patch into its 3^d children.
The piecewise constant interpolation has to copy the value of the coarse volume which contains a fine volume's centre. The d-linear interpolation has to reproduce a linear field, except next to the boundary of the coarse patch, where it extrapolates constantly.
|
private |
Interpolate onto hanging faces and restrict from them for overlaps of one, two and three.
|
private |
Trivial interpolation test for constant data.
|
private |
|
private |
Tests this averaging The test results from a real test with the Euler equations and four unknowns per coordinate axis. The input is as follows:
parameter tarch::la::DynamicMatrix::vectorToString(fineGridFaceEulerQUpdate.value,4*2*5): (entries=40,
{
0.100047, 0.000933957, 0,0,0.00493399,
0.100045, 0.000870917, 0,0,0.0045799,
0.100039, 0.000801622, 0,0,0.00422816,
0.100045, 0.00081321, 0,0,0.0042177,
0.100047, 0.000933957, 0,0,0.00493399,
0.100045, 0.000870917, 2.71051e-20,0,0.0045799,
0.100039, 0.000801622, 0,0,0.00422816,
0.100045,0.00081321,0,0,0.0042177
})