A helper class to store/run tests for a mesh. More...
#include <meshTests.h>
Classes | |
| class | MeshVectorFactory |
| Factory to create a vector from a mesh. More... | |
Static Public Member Functions | |
| static void | cloneMesh (AMP::UnitTest &ut, std::shared_ptr< const AMP::Mesh::Mesh > mesh) |
| Check clone. | |
| static void | DisplaceMeshScalar (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check displacement by a scalar. | |
| static void | DisplaceMeshVector (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check displacement by a vector. | |
| static std::pair< size_t, size_t > | ElementIteratorTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh, const AMP::Mesh::MeshIterator &iterator, const AMP::Mesh::GeomType type, const std::vector< int > &blockIds, const std::string &name) |
| static void | getNodeNeighbors (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check neighbors. | |
| static void | getParents (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check parents. | |
| static void | MeshBasicTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Run basic tests. | |
| static void | MeshCountTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Checks the number of elements in a mesh. | |
| static void | MeshGeometryTestLoop (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Run all mesh geometry based tests. | |
| static void | MeshIteratorOperationTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Checks the mesh operators. | |
| static void | MeshIteratorSetOPTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Checks the mesh set operations. | |
| static void | MeshIteratorTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Checks the mesh iterators. | |
| static void | MeshMatrixTestLoop (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh, bool fast=false) |
| Run all matrix based tests. | |
| static void | MeshPerformance (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check mesh performance. | |
| static void | MeshTestLoop (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Run all mesh based tests. | |
| static void | MeshVectorTestLoop (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh, bool fast=false) |
| Run all vector based tests. | |
| static void | RowWriteTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh, int dofsPerNode, bool split) |
| template<int DOF_PER_NODE, bool SPLIT> | |
| static void | simpleNodalVectorTests (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh, std::shared_ptr< AMP::Discretization::DOFManager > DOFs, int gcw) |
| Simple nodal vector tests. | |
| static void | TestBasicGeometry (AMP::UnitTest &ut, std::shared_ptr< const AMP::Mesh::Mesh > mesh) |
| Basic geometry class tests. | |
| static void | testBlockIDs (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check block ids. | |
| static void | testBoxMesh (AMP::UnitTest &ut, std::shared_ptr< const AMP::Mesh::Mesh > mesh) |
| Check BoxMesh. | |
| static void | testBoxMeshIndicies (AMP::UnitTest &ut, int ndim) |
| Check box mesh indicies. | |
| static void | testID (AMP::UnitTest &ut) |
| Check basic id info. | |
| static void | TestInside (AMP::UnitTest &ut, std::shared_ptr< const AMP::Mesh::Mesh > mesh) |
| Checks Geometry::inside. | |
| static void | TestNormalGeometry (AMP::UnitTest &ut, std::shared_ptr< const AMP::Mesh::Mesh > mesh) |
| Checks noraml. | |
| static void | TestPhysicalLogical (AMP::UnitTest &ut, std::shared_ptr< const AMP::Mesh::Mesh > mesh) |
| Checks Geometry::inside. | |
| static void | VerifyBoundaryIDNodeIterator (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check boundary ids. | |
| static void | VerifyBoundaryIterator (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check boundary. | |
| static void | VerifyBoundaryIteratorTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| static void | VerifyElementForNode (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| static void | VerifyGetMatrixTrivialTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh, int dofsPerNode, bool split) |
| template<int DOF_PER_NODE, bool SPLIT> | |
| static void | VerifyGetVectorTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| VerifyGetVectorTest. | |
| static void | VerifyGhostIsOwned (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
| Check ghost elements. | |
| static void | VerifyNodeElemMapIteratorTest (AMP::UnitTest &ut, std::shared_ptr< AMP::Mesh::Mesh > mesh) |
Static Private Attributes | |
| static std::shared_ptr< AMP::Mesh::Mesh > | globalMeshForMeshVectorFactory |
A helper class to store/run tests for a mesh.
Definition at line 20 of file meshTests.h.
|
static |
Check clone.
Test cloning a mesh
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Check displacement by a scalar.
Test if we correctly displace the mesh
| [out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Check displacement by a vector.
Test if we correctly displace the mesh
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
|
static |
Check neighbors.
Test if we correctly identify the node neighbors
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Check parents.
Test getting parent elements for each mesh element
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Run basic tests.
This test performs some very basic mesh tests
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Checks the number of elements in a mesh.
This test performs a series of simple tests on numLocalElements, numGlobalElements, and numGhostElements
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Run all mesh geometry based tests.
This test runs all the geometry-based tests
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Checks the mesh operators.
This test performs a series of simple tests on the operator== and operator!=
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Checks the mesh set operations.
This test performs a series of simple tests on the union, intersection, and compliment operations.
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Checks the mesh iterators.
This test performs a series of simple tests on the basic iterators within a mesh
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Run all matrix based tests.
This test runs all the matrix-based tests
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
| [in] | fast | Speed up testing by eliminating some of the tests |
|
static |
Check mesh performance.
Test the performance of some common mesh operations
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Run all mesh based tests.
This test runs all the mesh-based tests
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Run all vector based tests.
This test runs all the vector-based tests
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
| [in] | fast | Speed up testing by eliminating some of the tests |
|
static |
|
static |
Simple nodal vector tests.
Run a series of simple tests on a nodal vector
| [out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
| [in] | DOFs | DOF Manager to use |
| [in] | gcw | Ghost cell width to use |
|
static |
Basic geometry class tests.
This runs the geometry only tests
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh contaning geometry to test |
|
static |
Check block ids.
This tests loops over the blocks, checking the iterators
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
|
static |
Check box mesh indicies.
This tests checks conversion of box mesh indicies
| [in,out] | ut | Unit test class to report the results |
| [in] | ndim | Number of dimensions for test |
|
static |
Check basic id info.
This tests checks some trivial ids
| [in,out] | ut | Unit test class to report the results |
|
static |
Checks Geometry::inside.
This test checks if all points in the mesh are inside the geometry
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Checks noraml.
This test checks that the mesh and geometry normals match
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Checks Geometry::inside.
This test checks the physical-logical-physical transformation
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Check boundary ids.
This tests loops over all boundary ids, checking the iterators
| [out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Check boundary.
This tests checks the boundary iterators
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
|
static |
|
static |
|
static |
VerifyGetVectorTest.
VerifyGetVectorTest
| [out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
Check ghost elements.
This tests checks that all ghost elements are owned by "owner processor"
| [in,out] | ut | Unit test class to report the results |
| [in] | mesh | Mesh to test |
|
static |
|
staticprivate |
Definition at line 346 of file meshTests.h.
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:43. Comments on this page |