preCICE v3.1.2
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
PartitionOfUnityMappingTest.cpp File Reference
#include <Eigen/Core>
#include <algorithm>
#include <memory>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "logging/Logger.hpp"
#include "mapping/Mapping.hpp"
#include "mapping/PartitionOfUnityMapping.hpp"
#include "mapping/impl/BasisFunctions.hpp"
#include "mesh/Data.hpp"
#include "mesh/Mesh.hpp"
#include "mesh/SharedPointer.hpp"
#include "mesh/Utils.hpp"
#include "mesh/Vertex.hpp"
#include "testing/TestContext.hpp"
#include "testing/Testing.hpp"
Include dependency graph for PartitionOfUnityMappingTest.cpp:

Go to the source code of this file.

Classes

struct  VertexSpecification
 Holds rank, owner, position and value of a single vertex. More...
 

Typedefs

using MeshSpecification = std::vector<VertexSpecification>
 
using ReferenceSpecification = std::vector<std::pair<int, std::vector<double>>>
 Contains which values are expected on which rank: rank -> vector of data.
 

Functions

void addGlobalIndex (mesh::PtrMesh &mesh, int offset=0)
 
double sumComponentWise (const Eigen::VectorXd &vec, int component, int dataDimension)
 
void perform2DTestConsistentMapping (Mapping &mapping)
 
void perform2DTestConsistentMappingVector (Mapping &mapping)
 
void performTestConsistentMapDeadAxis (Mapping &mapping, int dim)
 
void perform2DTestConservativeMapping (Mapping &mapping)
 
void perform2DTestConservativeMappingVector (Mapping &mapping)
 
void perform3DTestConsistentMapping (Mapping &mapping)
 
void perform3DTestConsistentMappingVector (Mapping &mapping)
 
void perform3DTestConservativeMapping (Mapping &mapping)
 
void perform3DTestConservativeMappingVector (Mapping &mapping)
 
 BOOST_AUTO_TEST_CASE (PartitionOfUnityMappingTests)
 
 BOOST_AUTO_TEST_CASE (TestSingleClusterPartitionOfUnity)
 
void getDistributedMesh (const TestContext &context, MeshSpecification const &vertices, mesh::PtrMesh &mesh, mesh::PtrData &data, int globalIndexOffset=0, bool meshIsSmaller=false)
 
void testDistributed (const TestContext &context, Mapping &mapping, MeshSpecification inMeshSpec, MeshSpecification outMeshSpec, ReferenceSpecification referenceSpec, int inGlobalIndexOffset=0, bool meshIsSmaller=false)
 
 BOOST_AUTO_TEST_CASE (DistributedConsistent2D)
 
 BOOST_AUTO_TEST_CASE (DistributedConsistent2DEmptyOut)
 
 BOOST_AUTO_TEST_CASE (DistributedConsistent2DEmptyRank)
 
 BOOST_AUTO_TEST_CASE (DistributedConservative2D)
 
 BOOST_AUTO_TEST_CASE (DistributedConservative2DEmptyRank)
 
 BOOST_AUTO_TEST_CASE (DistributedConservative2DTwoRanks)
 
void testTagging (const TestContext &context, MeshSpecification inMeshSpec, MeshSpecification outMeshSpec, MeshSpecification shouldTagFirstRound, MeshSpecification shouldTagSecondRound, bool consistent)
 
 BOOST_AUTO_TEST_CASE (testTagFirstRound)
 

Typedef Documentation

◆ MeshSpecification

using MeshSpecification = std::vector<VertexSpecification>

Definition at line 1302 of file PartitionOfUnityMappingTest.cpp.

◆ ReferenceSpecification

Contains which values are expected on which rank: rank -> vector of data.

Definition at line 1305 of file PartitionOfUnityMappingTest.cpp.

Function Documentation

◆ addGlobalIndex()

void addGlobalIndex ( mesh::PtrMesh & mesh,
int offset = 0 )

Definition at line 29 of file PartitionOfUnityMappingTest.cpp.

◆ BOOST_AUTO_TEST_CASE() [1/9]

BOOST_AUTO_TEST_CASE ( DistributedConservative2D )

Definition at line 1504 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/9]

BOOST_AUTO_TEST_CASE ( DistributedConservative2DEmptyRank )

Definition at line 1543 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/9]

BOOST_AUTO_TEST_CASE ( DistributedConservative2DTwoRanks )

Definition at line 1606 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/9]

BOOST_AUTO_TEST_CASE ( DistributedConsistent2D )

Definition at line 1393 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/9]

BOOST_AUTO_TEST_CASE ( DistributedConsistent2DEmptyOut )

Definition at line 1432 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/9]

BOOST_AUTO_TEST_CASE ( DistributedConsistent2DEmptyRank )

Definition at line 1471 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/9]

BOOST_AUTO_TEST_CASE ( PartitionOfUnityMappingTests )

Definition at line 1117 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/9]

BOOST_AUTO_TEST_CASE ( TestSingleClusterPartitionOfUnity )

Definition at line 1144 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/9]

BOOST_AUTO_TEST_CASE ( testTagFirstRound )

Definition at line 1712 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ getDistributedMesh()

void getDistributedMesh ( const TestContext & context,
MeshSpecification const & vertices,
mesh::PtrMesh & mesh,
mesh::PtrData & data,
int globalIndexOffset = 0,
bool meshIsSmaller = false )

Definition at line 1307 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform2DTestConservativeMapping()

void perform2DTestConservativeMapping ( Mapping & mapping)

Definition at line 379 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform2DTestConservativeMappingVector()

void perform2DTestConservativeMappingVector ( Mapping & mapping)

Definition at line 476 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform2DTestConsistentMapping()

void perform2DTestConsistentMapping ( Mapping & mapping)

Definition at line 48 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform2DTestConsistentMappingVector()

void perform2DTestConsistentMappingVector ( Mapping & mapping)

Definition at line 180 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform3DTestConservativeMapping()

void perform3DTestConservativeMapping ( Mapping & mapping)

Definition at line 865 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform3DTestConservativeMappingVector()

void perform3DTestConservativeMappingVector ( Mapping & mapping)

Definition at line 978 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform3DTestConsistentMapping()

void perform3DTestConsistentMapping ( Mapping & mapping)

Definition at line 623 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ perform3DTestConsistentMappingVector()

void perform3DTestConsistentMappingVector ( Mapping & mapping)

Definition at line 769 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ performTestConsistentMapDeadAxis()

void performTestConsistentMapDeadAxis ( Mapping & mapping,
int dim )

Definition at line 317 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ sumComponentWise()

double sumComponentWise ( const Eigen::VectorXd & vec,
int component,
int dataDimension )

Definition at line 36 of file PartitionOfUnityMappingTest.cpp.

◆ testDistributed()

void testDistributed ( const TestContext & context,
Mapping & mapping,
MeshSpecification inMeshSpec,
MeshSpecification outMeshSpec,
ReferenceSpecification referenceSpec,
int inGlobalIndexOffset = 0,
bool meshIsSmaller = false )

Definition at line 1350 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function:

◆ testTagging()

void testTagging ( const TestContext & context,
MeshSpecification inMeshSpec,
MeshSpecification outMeshSpec,
MeshSpecification shouldTagFirstRound,
MeshSpecification shouldTagSecondRound,
bool consistent )

Definition at line 1652 of file PartitionOfUnityMappingTest.cpp.

Here is the call graph for this function: