Advanced Multi-Physics (AMP)
On-Line Documentation
discretizationTests.h
Go to the documentation of this file.
1#ifndef included_AMP_DiscretizationTests
2#define included_AMP_DiscretizationTests
3
4
5#include "AMP/discretization/DOF_Manager.h"
6#include "AMP/discretization/MultiDOF_Manager.h"
7#include "AMP/mesh/Mesh.h"
8#include "AMP/utils/UnitTest.h"
9
10
11namespace AMP::unit_test {
12
13
15 const AMP::Mesh::MeshIterator &iterator,
16 std::shared_ptr<AMP::Discretization::DOFManager> DOF );
17
18
19// Function to test some very basic properites
20void testBasics( std::shared_ptr<AMP::Discretization::DOFManager> DOF, AMP::UnitTest &ut );
21
22
23// Test subsetting for different comms
24void testSubsetComm( std::shared_ptr<AMP::Discretization::DOFManager> DOF, AMP::UnitTest &ut );
25
26
27// Test subsetting for different meshes
28void testSubsetMesh( std::shared_ptr<AMP::Mesh::Mesh> mesh,
29 std::shared_ptr<AMP::Discretization::DOFManager> DOF,
30 bool is_nodal,
31 int DOFsPerNode,
32 int gcw,
33 AMP::UnitTest &ut );
34
35
36// Function to test the index conversion given a multDOFManager
38 std::shared_ptr<AMP::Discretization::multiDOFManager> multiDOF );
39
40
41// Function to test that a multivector with a DOFManager repeated correctly sets the values
42void testMultiDOFVector( AMP::UnitTest &ut, std::shared_ptr<AMP::Discretization::DOFManager> DOF );
43
44
45// Test SimpleDOFManager / boxMeshDOFManager
47
48// Test SimpleDOFManager / boxMeshDOFManager
49void testLogicalDOFMap( int ndim, AMP::UnitTest &ut );
50
51// Test SimpleDOFManager / boxMeshDOFManager
52void testLogicalDOFMap( std::shared_ptr<const AMP::Mesh::Mesh> mesh,
53 bool isboxMesh,
55 int gcw,
56 int DOFsPerElement );
57
58
59} // namespace AMP::unit_test
60
61
62#endif
A class used to iterate over elements in a Mesh.
Class UnitTest is simple utility for running unit tests. It provides basic routines for tracing succe...
Definition UnitTest.h:49
GeomType
Enumeration for basic mesh-based quantities.
Definition MeshID.h:12
void testSubsetComm(std::shared_ptr< AMP::Discretization::DOFManager > DOF, AMP::UnitTest &ut)
void testLogicalDOFMap(AMP::UnitTest &ut)
void testMultiDOFMap(AMP::UnitTest &ut, std::shared_ptr< AMP::Discretization::multiDOFManager > multiDOF)
void testGetDOFIterator(AMP::UnitTest &ut, const AMP::Mesh::MeshIterator &iterator, std::shared_ptr< AMP::Discretization::DOFManager > DOF)
void testSubsetMesh(std::shared_ptr< AMP::Mesh::Mesh > mesh, std::shared_ptr< AMP::Discretization::DOFManager > DOF, bool is_nodal, int DOFsPerNode, int gcw, AMP::UnitTest &ut)
void testBasics(std::shared_ptr< AMP::Discretization::DOFManager > DOF, AMP::UnitTest &ut)
void testMultiDOFVector(AMP::UnitTest &ut, std::shared_ptr< AMP::Discretization::DOFManager > DOF)



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page