Advanced Multi-Physics (AMP)
On-Line Documentation
testSolverHelpers.h
Go to the documentation of this file.
1#ifndef included_testSolverHelpers_H_
2#define included_testSolverHelpers_H_
3
4#include "AMP/mesh/Mesh.h"
5#include "AMP/utils/UnitTest.h"
6
7#include <functional>
8
9namespace AMP {
10
11class Database;
12
13namespace Discretization {
14class DOFManager;
15}
16
17namespace LinearAlgebra {
18class Vector;
19}
20
21namespace Solver {
22class SolverStrategy;
23}
24} // namespace AMP
25
26// Check the solution of the form: T = a + b*z + c*z*z
27bool checkAnalyticalSolution( const std::string &exeName,
28 std::function<double( double, double, double )> fun,
29 const AMP::Mesh::MeshIterator &iterator,
30 std::shared_ptr<const AMP::LinearAlgebra::Vector> vec );
31
32std::shared_ptr<AMP::Mesh::Mesh> createMesh( std::shared_ptr<AMP::Database> input_db );
33
34std::pair<std::shared_ptr<AMP::Discretization::DOFManager>,
35 std::shared_ptr<AMP::Discretization::DOFManager>>
36getDofMaps( std::shared_ptr<const AMP::Mesh::Mesh> mesh );
37
38std::shared_ptr<AMP::LinearAlgebra::Vector>
39constructNeutronicsPowerSource( std::shared_ptr<AMP::Database> input_db,
40 std::shared_ptr<AMP::Mesh::Mesh> mesh );
41
42std::tuple<int, double, double, bool>
43get_regression_solution( std::shared_ptr<const AMP::Database> input_db );
44
45// Test for validity of solution by referencing map above and following
46// the rules laid out there.
47// Unrecognized input files just check if convergence reason is ok
49 std::shared_ptr<const AMP::Database> input_db,
50 const std::string &inputFile,
51 AMP::UnitTest &ut );
52
53#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
void checkConvergence(AMP::Solver::SolverStrategy *solver, std::shared_ptr< const AMP::Database > input_db, const std::string &inputFile, AMP::UnitTest &ut)
std::tuple< int, double, double, bool > get_regression_solution(std::shared_ptr< const AMP::Database > input_db)
std::shared_ptr< AMP::LinearAlgebra::Vector > constructNeutronicsPowerSource(std::shared_ptr< AMP::Database > input_db, std::shared_ptr< AMP::Mesh::Mesh > mesh)
std::pair< std::shared_ptr< AMP::Discretization::DOFManager >, std::shared_ptr< AMP::Discretization::DOFManager > > getDofMaps(std::shared_ptr< const AMP::Mesh::Mesh > mesh)
std::shared_ptr< AMP::Mesh::Mesh > createMesh(std::shared_ptr< AMP::Database > input_db)
bool checkAnalyticalSolution(const std::string &exeName, std::function< double(double, double, double)> fun, const AMP::Mesh::MeshIterator &iterator, std::shared_ptr< const AMP::LinearAlgebra::Vector > vec)



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:41.
Comments on this page