|
dune-istl 2.9.0
|
Loading...
Searching...
No Matches
ldl.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
73 : public InverseOperator<BlockVector<FieldVector<T,m>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > >,
74 BlockVector<FieldVector<T,n>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > > >
83 typedef ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<FieldMatrix<T,n,m>,A>, int> MatrixInitializer;
85 typedef Dune::BlockVector<FieldVector<T,m>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > > domain_type;
87 typedef Dune::BlockVector<FieldVector<T,n>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > > range_type;
166 virtual void apply(domain_type& x, range_type& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
219 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<Matrix,std::set<std::size_t> >(matrix,rowIndexSet));
323 if(amd_order (dimMat, ldlMatrix_.getColStart(), ldlMatrix_.getRowIndex(), P_, (double *) NULL, Info) < AMD_OK)
328 ldl_symbolic(dimMat, ldlMatrix_.getColStart(), ldlMatrix_.getRowIndex(), Lp_, Parent_, Lnz_, Flag_, P_, Pinv_);
#define DUNE_REGISTER_DIRECT_SOLVER(name,...)
Definition solverregistry.hh:13
Templates characterizing the type of a solver.
Implementations of the inverse operator interface.
Dune::BlockVector< FieldVector< T, m >, typename std::allocator_traits< A >::template rebind_alloc< FieldVector< T, m > > > domain_type
The type of the domain of the solver.
Definition ldl.hh:85
Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
The matrix type.
Definition ldl.hh:78
int * getLp()
Get factorization Lp.
Definition ldl.hh:278
LDLMatrix & getInternalMatrix()
Return the column compress matrix.
Definition ldl.hh:237
Dune::ISTL::Impl::BCCSMatrix< T, int > LDLMatrix
The corresponding SuperLU Matrix type.
Definition ldl.hh:81
double * getLx()
Get factorization Lx.
Definition ldl.hh:296
void setVerbosity(int v)
Sets the verbosity level for the solver.
Definition ldl.hh:228
void apply(T *x, T *b)
Additional apply method with c-arrays in analogy to superlu.
Definition ldl.hh:176
virtual void apply(domain_type &x, range_type &b, double reduction, InverseOperatorResult &res)
apply inverse operator, with given convergence criteria.
Definition ldl.hh:166
Dune::BlockVector< FieldVector< T, n >, typename std::allocator_traits< A >::template rebind_alloc< FieldVector< T, n > > > range_type
The type of the range of the solver.
Definition ldl.hh:87
virtual ~LDL()
Default constructor.
Definition ldl.hh:145
void free()
Free allocated space.
Definition ldl.hh:246
virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)
Apply inverse operator,.
Definition ldl.hh:152
int * getLi()
Get factorization Li.
Definition ldl.hh:287
Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > matrix_type
Definition ldl.hh:79
void setMatrix(const Matrix &matrix)
Initialize data from given matrix.
Definition ldl.hh:190
void setOption(unsigned int option, double value)
Definition ldl.hh:186
LDL(const Matrix &matrix, int verbose, bool)
Constructor for compatibility with SuperLU standard constructor.
Definition ldl.hh:120
double * getD()
Get factorization diagonal matrix D.
Definition ldl.hh:269
LDL(const Matrix &matrix, const ParameterTree &config)
Constructs the LDL solver.
Definition ldl.hh:136
virtual SolverCategory::Category category() const
Category of the solver (see SolverCategory::Category)
Definition ldl.hh:90
ISTL::Impl::BCCSMatrixInitializer< BCRSMatrix< FieldMatrix< T, n, m >, A >, int > MatrixInitializer
Type of an associated initializer class.
Definition ldl.hh:83
const char * name()
Get method name.
Definition ldl.hh:260
void setSubMatrix(const Matrix &matrix, const S &rowIndexSet)
Definition ldl.hh:207
LDL()
Default constructor.
Definition ldl.hh:141
LDL(const Matrix &matrix, int verbose=0)
Construct a solver object from a BCRSMatrix.
Definition ldl.hh:104
static Type apply(T &t)
static constexpr size_type M()
virtual void operator()()=0
#define DUNE_THROW(E, m)
void free()
Reference get(const RAPropertyMapHelper< Reference, PropertyMap > &pmap, const Key &key)
Definition matrixutils.hh:211
size_type M() const
number of columns (counted in blocks)
Definition bcrsmatrix.hh:1978
size_type N() const
number of rows (counted in blocks)
Definition bcrsmatrix.hh:1972
std::string get(const std::string &key, const std::string &defaultValue) const
Sequential overlapping Schwarz preconditioner.
Definition overlappingschwarz.hh:755
Definition overlappingschwarz.hh:694
Use the LDL package to directly solve linear systems – empty default class.
Definition ldl.hh:56
Definition ldl.hh:373
Definition ldl.hh:374
Statistics about the application of an inverse operator.
Definition solver.hh:48
bool converged
True if convergence criterion has been met.
Definition solver.hh:73
@ sequential
Category for sequential solvers.
Definition solvercategory.hh:25
Definition solverregistry.hh:77
Definition solvertype.hh:16
Definition solvertype.hh:30
@ value
whether the solver internally uses column compressed storage
Definition solvertype.hh:36
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8