Advanced Multi-Physics (AMP)
On-Line Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
AMP::LinearAlgebra::PetscVectorFactory Class Referenceabstract

A helper class to generate vectors. More...

#include <PetscVectorFactory.h>

Inheritance diagram for AMP::LinearAlgebra::PetscVectorFactory:
Inheritance graph
[legend]

Public Member Functions

virtual std::shared_ptr< VecgetVec (AMP::LinearAlgebra::Vector::shared_ptr) const =0
 
virtual AMP::LinearAlgebra::Vector::shared_ptr getVector () const =0
 
virtual std::string name () const =0
 
virtual ~PetscVectorFactory ()
 

Static Public Member Functions

static std::shared_ptr< Vectorcreate (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.
 

Protected Member Functions

 PetscVectorFactory ()
 
 PetscVectorFactory (const PetscVectorFactory &)
 

Detailed Description

A helper class to generate vectors.

Definition at line 37 of file PetscVectorFactory.h.

Constructor & Destructor Documentation

◆ ~PetscVectorFactory()

virtual AMP::LinearAlgebra::PetscVectorFactory::~PetscVectorFactory ( )
inlinevirtual

Definition at line 40 of file PetscVectorFactory.h.

◆ PetscVectorFactory() [1/2]

AMP::LinearAlgebra::PetscVectorFactory::PetscVectorFactory ( )
inlineprotected

Definition at line 44 of file PetscVectorFactory.h.

◆ PetscVectorFactory() [2/2]

AMP::LinearAlgebra::PetscVectorFactory::PetscVectorFactory ( const PetscVectorFactory )
protected

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.

◆ getVec()

virtual std::shared_ptr< Vec > AMP::LinearAlgebra::PetscVectorFactory::getVec ( AMP::LinearAlgebra::Vector::shared_ptr  ) const
pure virtual

◆ getVector()

virtual AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::VectorFactory::getVector ( ) const
pure virtualinherited

◆ name()

virtual std::string AMP::LinearAlgebra::VectorFactory::name ( ) const
pure virtualinherited

◆ 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().


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