Peano
Loading...
Searching...
No Matches
TestHelpers.h File Reference
#include "tarch/la/Vector.h"
#include "tarch/logging/Log.h"
#include "tarch/tests/TestCase.h"
#include "TestParticle.h"
Include dependency graph for TestHelpers.h:

Go to the source code of this file.

Data Structures

class  toolbox::particles::assignmentchecks::tests::TestHelpers

Namespaces

namespace  toolbox
namespace  toolbox::particles
namespace  toolbox::particles::assignmentchecks
 Correctness checks of particle-mesh assignment.
namespace  toolbox::particles::assignmentchecks::tests
namespace  toolbox::particles::assignmentchecks::tests::internal

Functions

bool toolbox::particles::assignmentchecks::tests::internal::liftParticle (const tarch::la::Vector< Dimensions, double > particleX, const tarch::la::Vector< Dimensions, double > vertexX, const tarch::la::Vector< Dimensions, double > vertexH, const int depth)
 Does this particle need to be lifted?
bool toolbox::particles::assignmentchecks::tests::internal::dropParticle (const tarch::la::Vector< Dimensions, double > particleX, const tarch::la::Vector< Dimensions, double > vertexH, const int depth, const int maxVertexDepth)
 Does this particle need to be dropped?
int toolbox::particles::assignmentchecks::tests::internal::findVertexInd (double x, double vertexH)
 Find "index" of vertex with size vertexH covering position x assuming all vertices start at (0, 0, 0).
tarch::la::Vector< Dimensions, double > toolbox::particles::assignmentchecks::tests::internal::findVertexX (const tarch::la::Vector< Dimensions, double > x, const tarch::la::Vector< Dimensions, double > vertexH)
 Find position of vertex with size vertexH covering position x assuming all vertices start at (0, 0, 0).
TestParticle * toolbox::particles::assignmentchecks::tests::internal::mirrorParticleAlongPeriodicBoundary (TestParticle *original, bool bx, bool by, bool bz, tarch::la::Vector< Dimensions, double > boundary)
 Create a particle mirrored along periodic boundaries.