Advanced Multi-Physics (AMP)
On-Line Documentation
Namespaces | Typedefs | Functions
VectorBuilder.h File Reference
#include "AMP/AMP_TPLs.h"
#include "AMP/discretization/DOF_Manager.h"
#include "AMP/utils/Backend.h"
#include "AMP/utils/Memory.h"
#include "AMP/utils/Utilities.h"
#include "AMP/vectors/Vector.h"
#include "AMP/vectors/data/VectorDataDefault.h"
#include "AMP/vectors/operations/default/VectorOperationsDefault.h"
#include <string>
Include dependency graph for VectorBuilder.h:

Go to the source code of this file.

Namespaces

namespace  AMP
 
namespace  AMP::LinearAlgebra
 
namespace  Teuchos
 

Typedefs

typedef struct _p_Vec * Vec
 

Functions

template<typename T , typename FUN = FunctionTable<T>, typename Allocator = AMP::HostAllocator<void>>
Vector::shared_ptr AMP::LinearAlgebra::createArrayVector (const ArraySize &localSize, const ArraySize &blockIndex, const AMP_MPI &comm, std::shared_ptr< Variable > var)
 Create a ArrayVector.
 
template<typename T , typename FUN = FunctionTable<T>, typename Allocator = AMP::HostAllocator<void>>
Vector::shared_ptr AMP::LinearAlgebra::createArrayVector (const ArraySize &localSize, const std::string &var)
 Create a ArrayVector.
 
template<typename T , typename FUN = FunctionTable<T>, typename Allocator = AMP::HostAllocator<void>>
Vector::shared_ptr AMP::LinearAlgebra::createArrayVector (const ArraySize &localSize, std::shared_ptr< Variable > var)
 Cre ate a ArrayVector.
 
std::shared_ptr< VectorAMP::LinearAlgebra::createEpetraVector (std::shared_ptr< CommunicationList > commList, std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< VectorData > p=nullptr)
 Create an epetra vector.
 
template<typename TYPE , typename VecOps = VectorOperationsDefault<TYPE>, typename VecData = VectorDataDefault<TYPE>>
Vector::shared_ptr AMP::LinearAlgebra::createSimpleVector (size_t localSize, const std::string &var)
 Create a simple AMP vector.
 
template<typename TYPE , typename VecOps = VectorOperationsDefault<TYPE>, typename VecData = VectorDataDefault<TYPE>>
Vector::shared_ptr AMP::LinearAlgebra::createSimpleVector (size_t localSize, std::shared_ptr< Variable > var)
 Create a simple AMP vector.
 
template<typename TYPE , typename VecOps = VectorOperationsDefault<TYPE>, typename VecData = VectorDataDefault<TYPE>>
Vector::shared_ptr AMP::LinearAlgebra::createSimpleVector (size_t localSize, std::shared_ptr< Variable > var, AMP_MPI comm)
 Create a simple AMP vector.
 
template<typename TYPE , typename VecOps = VectorOperationsDefault<TYPE>, typename VecData = VectorDataDefault<TYPE>>
Vector::shared_ptr AMP::LinearAlgebra::createSimpleVector (std::shared_ptr< Variable > var, std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< CommunicationList > commlist)
 Create a simple AMP vector.
 
std::shared_ptr< VectorAMP::LinearAlgebra::createTpetraVector (std::shared_ptr< CommunicationList > commList, std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< VectorData > p=nullptr)
 Create a Tpetra vector.
 
template<typename TYPE = double, typename DATA = VectorDataDefault<TYPE>>
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< AMP::LinearAlgebra::Variable > variable, bool split, AMP::Utilities::Backend backend)
 This function will create a vector from a DOFManager with a given ops backend.
 
template<typename TYPE = double>
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< AMP::LinearAlgebra::Variable > variable, bool split, AMP::Utilities::MemoryType memType)
 This function will create a vector from an arbitrary DOFManager.
 
template<typename TYPE = double>
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< AMP::LinearAlgebra::Variable > variable, bool split, AMP::Utilities::MemoryType memType, AMP::Utilities::Backend backend)
 This function will create a vector from an arbitrary DOFManager.
 
template<typename TYPE = double, typename OPS = VectorOperationsDefault<TYPE>, typename DATA = VectorDataDefault<TYPE>>
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< AMP::Discretization::DOFManager > DOFs, std::shared_ptr< AMP::LinearAlgebra::Variable > variable, bool split=true)
 This function will create a vector from an arbitrary DOFManager.
 
template<typename TYPE = double>
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< AMP::LinearAlgebra::Vector > vector, AMP::Utilities::MemoryType memType)
 This function will create a vector from a vector.
 
template<typename TYPE = double>
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< AMP::LinearAlgebra::Vector > vector, AMP::Utilities::MemoryType memType, AMP::Utilities::Backend backend)
 This function will create a vector from a vector.
 
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< const AMP::LinearAlgebra::Vector > vector, AMP::Utilities::MemoryType memType)
 This function will create a vector from a vector.
 
AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::createVector (std::shared_ptr< const AMP::LinearAlgebra::Vector > vector, AMP::Utilities::MemoryType memType, AMP::Utilities::Backend backend)
 This function will create a vector from a vector.
 
std::shared_ptr< VectorAMP::LinearAlgebra::createVector (Vec v, bool deleteable, AMP_MPI comm=AMP_MPI(), std::shared_ptr< Variable > var=nullptr)
 Create a vector from an arbitrary PETSc Vec.
 
template<typename T >
Vector::shared_ptr AMP::LinearAlgebra::createVectorAdaptor (const std::string &name, std::shared_ptr< AMP::Discretization::DOFManager > DOFs, T *data)
 Create a view to raw vector data.
 

Typedef Documentation

◆ Vec

typedef struct _p_Vec* Vec

Definition at line 18 of file VectorBuilder.h.



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