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

#include <test_MatrixVectorFactory.h>

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

Public Member Functions

std::shared_ptr< VecgetVec (AMP::LinearAlgebra::Vector::shared_ptr vec) const override
 
AMP::LinearAlgebra::Vector::shared_ptr getVector () const override
 
std::string name () const override
 
 PETScInterfaceLeftVectorFactory (std::shared_ptr< AMP::LinearAlgebra::Matrix > matrix)
 

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.
 

Private Attributes

std::shared_ptr< AMP::LinearAlgebra::Matrixd_matrix
 

Detailed Description

Definition at line 75 of file test_MatrixVectorFactory.h.

Constructor & Destructor Documentation

◆ PETScInterfaceLeftVectorFactory()

AMP::LinearAlgebra::PETScInterfaceLeftVectorFactory::PETScInterfaceLeftVectorFactory ( std::shared_ptr< AMP::LinearAlgebra::Matrix matrix)
inlineexplicit

Definition at line 78 of file test_MatrixVectorFactory.h.

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

std::shared_ptr< Vec > AMP::LinearAlgebra::PETScInterfaceLeftVectorFactory::getVec ( AMP::LinearAlgebra::Vector::shared_ptr  vec) const
inlineoverridevirtual

Implements AMP::LinearAlgebra::PetscVectorFactory.

Definition at line 93 of file test_MatrixVectorFactory.h.

◆ getVector()

AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::PETScInterfaceLeftVectorFactory::getVector ( ) const
inlineoverridevirtual

◆ name()

std::string AMP::LinearAlgebra::PETScInterfaceLeftVectorFactory::name ( ) const
inlineoverridevirtual

Implements AMP::LinearAlgebra::VectorFactory.

Definition at line 99 of file test_MatrixVectorFactory.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_matrix

std::shared_ptr<AMP::LinearAlgebra::Matrix> AMP::LinearAlgebra::PETScInterfaceLeftVectorFactory::d_matrix
private

Definition at line 102 of file test_MatrixVectorFactory.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