pi-DoMUS: Parallel Deal.II MUltiphysics Solver
ScopedLACInitializer Class Reference

General class, used to initialize different types of Vectors, Matrices and Sparsity Patterns using a common interface. More...

#include <lac_initializer.h>

Public Member Functions

 ScopedLACInitializer (const std::vector< types::global_dof_index > &dofs_per_block, const std::vector< IndexSet > &owned, const std::vector< IndexSet > &relevant, const MPI_Comm &comm=MPI_COMM_WORLD)
 
void operator() (TrilinosWrappers::MPI::BlockVector &v, bool fast=false)
 Initialize a non ghosted TrilinosWrappers::MPI::BlockVector. More...
 
void ghosted (TrilinosWrappers::MPI::BlockVector &v, bool fast=false)
 Initialize a ghosted TrilinosWrappers::MPI::BlockVector. More...
 
void operator() (BlockVector< double > &v, bool fast=false)
 Initialize a serial BlockVector<double>. More...
 
void ghosted (BlockVector< double > &, bool fast=false)
 Initiale a ghosted BlockVector<double>. More...
 
template<int dim, int spacedim>
void operator() (TrilinosWrappers::BlockSparsityPattern &s, const DoFHandler< dim, spacedim > &dh, const ConstraintMatrix &cm, const Table< 2, DoFTools::Coupling > &coupling)
 Initialize a Trilinos Sparsity Pattern. More...
 
template<int dim, int spacedim>
void operator() (dealii::BlockSparsityPattern &s, const DoFHandler< dim, spacedim > &dh, const ConstraintMatrix &cm, const Table< 2, DoFTools::Coupling > &coupling)
 Initialize a Deal.II Sparsity Pattern. More...
 

Detailed Description

General class, used to initialize different types of Vectors, Matrices and Sparsity Patterns using a common interface.

Constructor & Destructor Documentation

ScopedLACInitializer::ScopedLACInitializer ( const std::vector< types::global_dof_index > &  dofs_per_block,
const std::vector< IndexSet > &  owned,
const std::vector< IndexSet > &  relevant,
const MPI_Comm &  comm = MPI_COMM_WORLD 
)
inline

Member Function Documentation

void ScopedLACInitializer::ghosted ( TrilinosWrappers::MPI::BlockVector v,
bool  fast = false 
)
inline

Initialize a ghosted TrilinosWrappers::MPI::BlockVector.

void ScopedLACInitializer::ghosted ( BlockVector< double > &  ,
bool  fast = false 
)
inline

Initiale a ghosted BlockVector<double>.

Will throw an exception and should not be called...

void ScopedLACInitializer::operator() ( TrilinosWrappers::MPI::BlockVector v,
bool  fast = false 
)
inline

Initialize a non ghosted TrilinosWrappers::MPI::BlockVector.

void ScopedLACInitializer::operator() ( BlockVector< double > &  v,
bool  fast = false 
)
inline

Initialize a serial BlockVector<double>.

template<int dim, int spacedim>
void ScopedLACInitializer::operator() ( TrilinosWrappers::BlockSparsityPattern s,
const DoFHandler< dim, spacedim > &  dh,
const ConstraintMatrix cm,
const Table< 2, DoFTools::Coupling > &  coupling 
)
inline

Initialize a Trilinos Sparsity Pattern.

template<int dim, int spacedim>
void ScopedLACInitializer::operator() ( dealii::BlockSparsityPattern &  s,
const DoFHandler< dim, spacedim > &  dh,
const ConstraintMatrix cm,
const Table< 2, DoFTools::Coupling > &  coupling 
)
inline

Initialize a Deal.II Sparsity Pattern.


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