DOLFIN
DOLFIN C++ interface
Public Member Functions | Static Public Member Functions | List of all members
dolfin::DefaultFactory Class Reference

Default linear algebra factory based on global parameter "linear_algebra_backend". More...

#include <DefaultFactory.h>

Inheritance diagram for dolfin::DefaultFactory:
Inheritance graph
[legend]
Collaboration diagram for dolfin::DefaultFactory:
Collaboration graph
[legend]

Public Member Functions

 DefaultFactory ()
 Constructor.
 
virtual ~DefaultFactory ()
 Destructor.
 
virtual std::shared_ptr< GenericMatrixcreate_matrix (MPI_Comm comm) const
 Create empty matrix.
 
virtual std::shared_ptr< GenericVectorcreate_vector (MPI_Comm comm) const
 Create empty vector.
 
virtual std::shared_ptr< TensorLayoutcreate_layout (MPI_Comm comm, std::size_t rank) const
 Create empty tensor layout.
 
virtual std::shared_ptr< GenericLinearOperatorcreate_linear_operator (MPI_Comm comm) const
 Create empty linear operator.
 
virtual std::shared_ptr< dolfin::GenericLinearSolvercreate_lu_solver (MPI_Comm comm, std::string method) const
 Create LU solver.
 
virtual std::shared_ptr< dolfin::GenericLinearSolvercreate_krylov_solver (MPI_Comm comm, std::string method, std::string preconditioner) const
 Create Krylov solver.
 
std::map< std::string, std::string > lu_solver_methods () const
 Return a list of available LU solver methods.
 
std::map< std::string, std::string > krylov_solver_methods () const
 Return a list of available Krylov solver methods.
 
std::map< std::string, std::string > krylov_solver_preconditioners () const
 Return a list of available preconditioners.
 
- Public Member Functions inherited from dolfin::GenericLinearAlgebraFactory
 GenericLinearAlgebraFactory ()
 Constructor.
 
virtual ~GenericLinearAlgebraFactory ()
 Destructor.
 

Static Public Member Functions

static GenericLinearAlgebraFactoryfactory ()
 Return instance of default backend.
 

Detailed Description

Default linear algebra factory based on global parameter "linear_algebra_backend".


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