Advanced Multi-Physics (AMP)
On-Line Documentation
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
AMP::Mesh::meshTests::MeshVectorFactory Class Reference

Factory to create a vector from a mesh. More...

#include <meshTests.h>

Inheritance diagram for AMP::Mesh::meshTests::MeshVectorFactory:
Inheritance graph
[legend]

Public Member Functions

AMP::LinearAlgebra::Vector::shared_ptr getVector () const override
 Get the Vector.
 
 MeshVectorFactory (std::shared_ptr< AMP::Mesh::Mesh > mesh, AMP::Mesh::GeomType type, int gcw, int dofs_per_node, bool split)
 
std::string name () const override
 Get the name.
 

Static Public Member Functions

static std::shared_ptr< Vector > create (int64_t fid, AMP::IO::RestartManager *manager)
 Create the vector from the restart file.
 
static VectorFactorygetFactory ()
 get a singleton instance of the factory
 
template<class VECTOR >
static void registerVector (const std::string &name)
 Register a vector with the factory.
 

Private Member Functions

 MeshVectorFactory ()
 

Private Attributes

std::shared_ptr< AMP::Discretization::DOFManagerd_dofManager
 
bool SPLIT
 

Detailed Description

Factory to create a vector from a mesh.

Definition at line 272 of file meshTests.h.

Constructor & Destructor Documentation

◆ MeshVectorFactory() [1/2]

AMP::Mesh::meshTests::MeshVectorFactory::MeshVectorFactory ( std::shared_ptr< AMP::Mesh::Mesh mesh,
AMP::Mesh::GeomType  type,
int  gcw,
int  dofs_per_node,
bool  split 
)
inline

Definition at line 275 of file meshTests.h.

◆ MeshVectorFactory() [2/2]

AMP::Mesh::meshTests::MeshVectorFactory::MeshVectorFactory ( )
private

Member Function Documentation

◆ create()

static std::shared_ptr< Vector > AMP::LinearAlgebra::VectorFactory::create ( int64_t  fid,
AMP::IO::RestartManager manager 
)
staticinherited

Create the vector from the restart file.

◆ getFactory()

static VectorFactory & AMP::LinearAlgebra::VectorFactory::getFactory ( )
inlinestaticinherited

get a singleton instance of the factory

Definition at line 28 of file VectorFactory.h.

◆ getVector()

AMP::LinearAlgebra::Vector::shared_ptr AMP::Mesh::meshTests::MeshVectorFactory::getVector ( ) const
inlineoverridevirtual

Get the Vector.

Implements AMP::LinearAlgebra::VectorFactory.

Definition at line 286 of file meshTests.h.

References AMP::LinearAlgebra::createVector(), d_dofManager, and SPLIT.

◆ name()

std::string AMP::Mesh::meshTests::MeshVectorFactory::name ( ) const
inlineoverridevirtual

Get the name.

Implements AMP::LinearAlgebra::VectorFactory.

Definition at line 292 of file meshTests.h.

◆ registerVector()

template<class VECTOR >
static void AMP::LinearAlgebra::VectorFactory::registerVector ( const std::string &  name)
inlinestaticinherited

Register a vector with the factory.

Definition at line 39 of file VectorFactory.h.

References AMP::LinearAlgebra::VectorFactory::name().

Member Data Documentation

◆ d_dofManager

std::shared_ptr<AMP::Discretization::DOFManager> AMP::Mesh::meshTests::MeshVectorFactory::d_dofManager
private

Definition at line 296 of file meshTests.h.

Referenced by getVector().

◆ SPLIT

bool AMP::Mesh::meshTests::MeshVectorFactory::SPLIT
private

Definition at line 297 of file meshTests.h.

Referenced by getVector().


The documentation for this class was generated from the following file:



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