preCICE v3.2.0
Loading...
Searching...
No Matches
MeshTest.cpp File Reference
#include <Eigen/Core>
#include <algorithm>
#include <deque>
#include <iosfwd>
#include <memory>
#include <string>
#include <vector>
#include "logging/Logger.hpp"
#include "mesh/BoundingBox.hpp"
#include "mesh/Data.hpp"
#include "mesh/Edge.hpp"
#include "mesh/Mesh.hpp"
#include "mesh/SharedPointer.hpp"
#include "mesh/Triangle.hpp"
#include "mesh/Utils.hpp"
#include "mesh/Vertex.hpp"
#include "testing/TestContext.hpp"
#include "testing/Testing.hpp"
#include "utils/algorithm.hpp"
Include dependency graph for MeshTest.cpp:

Go to the source code of this file.

Classes

struct  UnitSquareFixture
struct  OneTetraFixture

Functions

 BOOST_AUTO_TEST_CASE (BoundingBoxCOG_2D)
 BOOST_AUTO_TEST_CASE (BoundingBoxCOG_3D)
 BOOST_AUTO_TEST_CASE (Demonstration)
 BOOST_AUTO_TEST_CASE (MeshEquality)
 BOOST_AUTO_TEST_CASE (MeshWKTPrint)
 BOOST_AUTO_TEST_CASE (ResizeDataGrow)
 BOOST_AUTO_TEST_CASE (ResizeDataShrink)
 BOOST_AUTO_TEST_CASE (AsChain)
 BOOST_AUTO_TEST_CASE (ShareVertex)
 BOOST_AUTO_TEST_CASE (EdgeLength)
 BOOST_AUTO_TEST_CASE (VertexPtrsFor)
 BOOST_AUTO_TEST_CASE (CoordsForIDs)
 BOOST_AUTO_TEST_CASE (CoordsForPtrs)
 BOOST_AUTO_TEST_CASE (Integrate2DScalarData)
 BOOST_AUTO_TEST_CASE (Integrate2DVectorData)
 BOOST_AUTO_TEST_CASE (Integrate3DScalarData)
 BOOST_AUTO_TEST_CASE (Integrate3DVectorData)
 BOOST_FIXTURE_TEST_CASE (Integrate2DScalarDataVolume, UnitSquareFixture)
 BOOST_FIXTURE_TEST_CASE (Integrate2DVectorDataVolume, UnitSquareFixture)
 BOOST_FIXTURE_TEST_CASE (Integrate3DScalarDataVolume, OneTetraFixture)
 BOOST_FIXTURE_TEST_CASE (Integrate3DVectorDataVolume, OneTetraFixture)
 BOOST_AUTO_TEST_CASE (AddMesh)
 BOOST_AUTO_TEST_SUITE (PreProcess)
 BOOST_AUTO_TEST_CASE (DuplicateEdges)
 BOOST_AUTO_TEST_CASE (SingleTriangle)
 BOOST_AUTO_TEST_CASE (SingleTriangulatedQuad)
 BOOST_AUTO_TEST_CASE (SingleTetrahedron)
 BOOST_AUTO_TEST_CASE (TouchingTetrahedra)
 BOOST_AUTO_TEST_CASE (SingleTriangle2ImplicitEdges)
 BOOST_AUTO_TEST_CASE (SingleTriangle1ImplicitEdges)
 BOOST_AUTO_TEST_CASE (SingleTetrahedron3ImplicitTriangles)
 BOOST_AUTO_TEST_CASE (SingleTetrahedronNoImplicitTriangles)
 BOOST_AUTO_TEST_CASE (Mixed)
 BOOST_AUTO_TEST_CASE (Complex)
 BOOST_AUTO_TEST_SUITE_END ()
boost::test_tools::predicate_result equals (const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance)
 equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands on failure

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/29]

BOOST_AUTO_TEST_CASE ( AddMesh )

Definition at line 807 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/29]

BOOST_AUTO_TEST_CASE ( AsChain )

Definition at line 310 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/29]

BOOST_AUTO_TEST_CASE ( BoundingBoxCOG_2D )

Definition at line 33 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/29]

BOOST_AUTO_TEST_CASE ( BoundingBoxCOG_3D )

Definition at line 65 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/29]

BOOST_AUTO_TEST_CASE ( Complex )

Definition at line 1076 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/29]

BOOST_AUTO_TEST_CASE ( CoordsForIDs )

Definition at line 439 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/29]

BOOST_AUTO_TEST_CASE ( CoordsForPtrs )

Definition at line 468 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/29]

BOOST_AUTO_TEST_CASE ( Demonstration )

Definition at line 100 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/29]

BOOST_AUTO_TEST_CASE ( DuplicateEdges )

Definition at line 848 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/29]

BOOST_AUTO_TEST_CASE ( EdgeLength )

Definition at line 395 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/29]

BOOST_AUTO_TEST_CASE ( Integrate2DScalarData )

Definition at line 497 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/29]

BOOST_AUTO_TEST_CASE ( Integrate2DVectorData )

Definition at line 525 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/29]

BOOST_AUTO_TEST_CASE ( Integrate3DScalarData )

Definition at line 558 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/29]

BOOST_AUTO_TEST_CASE ( Integrate3DVectorData )

Definition at line 591 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/29]

BOOST_AUTO_TEST_CASE ( MeshEquality )

Definition at line 199 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/29]

BOOST_AUTO_TEST_CASE ( MeshWKTPrint )

Definition at line 231 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [17/29]

BOOST_AUTO_TEST_CASE ( Mixed )

Definition at line 1054 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [18/29]

BOOST_AUTO_TEST_CASE ( ResizeDataGrow )

Definition at line 258 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [19/29]

BOOST_AUTO_TEST_CASE ( ResizeDataShrink )

Definition at line 282 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [20/29]

BOOST_AUTO_TEST_CASE ( ShareVertex )

Definition at line 354 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [21/29]

BOOST_AUTO_TEST_CASE ( SingleTetrahedron )

Definition at line 925 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [22/29]

BOOST_AUTO_TEST_CASE ( SingleTetrahedron3ImplicitTriangles )

Definition at line 1009 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [23/29]

BOOST_AUTO_TEST_CASE ( SingleTetrahedronNoImplicitTriangles )

Definition at line 1030 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [24/29]

BOOST_AUTO_TEST_CASE ( SingleTriangle )

Definition at line 885 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [25/29]

BOOST_AUTO_TEST_CASE ( SingleTriangle1ImplicitEdges )

Definition at line 988 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [26/29]

BOOST_AUTO_TEST_CASE ( SingleTriangle2ImplicitEdges )

Definition at line 968 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [27/29]

BOOST_AUTO_TEST_CASE ( SingleTriangulatedQuad )

Definition at line 904 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [28/29]

BOOST_AUTO_TEST_CASE ( TouchingTetrahedra )

Definition at line 945 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [29/29]

BOOST_AUTO_TEST_CASE ( VertexPtrsFor )

Definition at line 410 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_SUITE()

BOOST_AUTO_TEST_SUITE ( PreProcess )

◆ BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END ( )
Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( Integrate2DScalarDataVolume ,
UnitSquareFixture  )

Definition at line 640 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( Integrate2DVectorDataVolume ,
UnitSquareFixture  )

Definition at line 679 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( Integrate3DScalarDataVolume ,
OneTetraFixture  )

Definition at line 731 of file MeshTest.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( Integrate3DVectorDataVolume ,
OneTetraFixture  )

Definition at line 762 of file MeshTest.cpp.

Here is the call graph for this function:

◆ equals()

boost::test_tools::predicate_result precice::testing::equals ( const std::vector< float > & VectorA,
const std::vector< float > & VectorB,
float tolerance = math::NUMERICAL_ZERO_DIFFERENCE )

equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands on failure

Definition at line 93 of file Testing.cpp.