Advanced Multi-Physics (AMP)
On-Line Documentation
MeshParameters.h
Go to the documentation of this file.
1#ifndef included_AMP_MeshParameters
2#define included_AMP_MeshParameters
3
4#include "AMP/utils/AMP_MPI.h"
5#include "AMP/utils/Database.h"
6
7
8namespace AMP::Mesh {
9
10
16{
17public:
20
26 explicit MeshParameters( std::shared_ptr<AMP::Database> db );
27
33 void setComm( const AMP::AMP_MPI &comm );
34
39 const AMP::AMP_MPI &getComm() const { return comm; };
40
42 std::shared_ptr<AMP::Database> getDatabase();
43
45 std::shared_ptr<const AMP::Database> getDatabase() const;
46
48 virtual ~MeshParameters();
49
50protected:
52 std::shared_ptr<AMP::Database> d_db = nullptr;
53
56
59
61 friend class Mesh;
62};
63
64
65} // namespace AMP::Mesh
66
67#endif
Provides C++ wrapper around MPI routines.
Definition AMP_MPI.h:63
virtual ~MeshParameters()
Deconstructor.
void setComm(const AMP::AMP_MPI &comm)
Set the comm for the mesh.
std::shared_ptr< AMP::Database > getDatabase()
Get the database for the mesh.
const AMP::AMP_MPI & getComm() const
Get the comm for the mesh.
MeshParameters()
Empty constructor.
int MAX_GCW_WIDTH
The maximum ghost cell width for the mesh.
AMP::AMP_MPI comm
The desired communicator.
std::shared_ptr< const AMP::Database > getDatabase() const
Get the database for the mesh.
MeshParameters(std::shared_ptr< AMP::Database > db)
Constructor to create the MeshParamaters from an AMP Database object.
std::shared_ptr< AMP::Database > d_db
A pointer to an AMP database containing the mesh info.
A class used to abstract away mesh from an application.
Definition Mesh.h:57



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