|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
inverseoperatorinterface.hh
Go to the documentation of this file.
17 SolverInfo(bool pconverged,int plinearIterations,int pnonlinearIterations, const std::vector<double>& ptiming)
35 public Dune::Fem::Operator< typename Traits::DiscreteFunctionType, typename Traits::DiscreteFunctionType >,
36 public BartonNackmanInterface< InverseOperatorInterface< Traits >, typename Traits::InverseOperatorType >
40 typedef BartonNackmanInterface< InverseOperatorInterface< Traits >, typename Traits::InverseOperatorType > Base2Type;
50 typedef typename SolverDiscreteFunctionType :: DiscreteFunctionSpaceType SolverDiscreteFunctionSpaceType;
59 typedef std::function< bool ( const RangeFunctionType &w, const RangeFunctionType &dw, double residualNorm ) > ErrorMeasureType;
129 void unbind () { operator_ = nullptr; assembledOperator_ = nullptr; preconditioner_ = nullptr; rhs_.reset(); x_.reset(); }
154 std::shared_ptr< SolverParameterType > sharedNewParams = std::make_shared< SolverParameterType > (newParams);
216 DUNE_THROW(Dune::NotImplemented, "InverseOperator::operator() for matrix free operators only makes sense" <<
virtual void operator()()=0
#define DUNE_THROW(E,...)
STL namespace.
Definition common/discretefunction.hh:86
const DiscreteFunctionSpaceType & space() const
obtain a reference to the corresponding DiscreteFunctionSpace
Definition common/discretefunction.hh:214
void assign(const DiscreteFunctionInterface< DFType > &g)
assign the DoFs of another discrete function to this one
Definition common/discretefunction.hh:455
static bool verbose()
obtain the cached value for fem.verbose with default verbosity level 2
Definition io/parameter.hh:466
Definition bartonnackmaninterface.hh:17
const Traits::InverseOperatorType & asImp() const
Definition bartonnackmaninterface.hh:37
Definition inverseoperatorinterface.hh:37
virtual void setMaxIterations(const int iter)
Definition inverseoperatorinterface.hh:145
int iterations_
Definition inverseoperatorinterface.hh:246
InverseOperatorInterface(const InverseOperatorInterface &other)
copy constructor setting defaults
Definition inverseoperatorinterface.hh:176
InverseOperatorInterface(const SolverParameterType ¶meter)
default constructor
Definition inverseoperatorinterface.hh:67
double averageCommTime() const
return accumulated communication time
Definition inverseoperatorinterface.hh:170
const PreconditionerType * preconditioner_
Definition inverseoperatorinterface.hh:240
Traits::SolverParameterType SolverParameterType
Definition inverseoperatorinterface.hh:54
SolverParameterType & parameter() const
Definition inverseoperatorinterface.hh:159
std::unique_ptr< SolverDiscreteFunctionType > x_
Definition inverseoperatorinterface.hh:244
const OperatorType * operator_
Definition inverseoperatorinterface.hh:238
std::unique_ptr< SolverDiscreteFunctionType > rhs_
Definition inverseoperatorinterface.hh:243
virtual void setMaxLinearIterations(const int iter)
set number of max linear iterations to be used before an exception is thrown
Definition inverseoperatorinterface.hh:140
void unbind()
reset all pointers and internal temporary memory
Definition inverseoperatorinterface.hh:129
static const bool preconditioningAvailable
true if a preconditioner type is exported and can be set using bind( op, p )
Definition inverseoperatorinterface.hh:62
Impl::SolverInfo SolverInfoType
Definition inverseoperatorinterface.hh:56
void opApply(const DiscreteFunctionInterface< DImpl > &u, DiscreteFunctionInterface< RImpl > &w) const
Definition inverseoperatorinterface.hh:212
bool verbose() const
Definition inverseoperatorinterface.hh:164
void bind(const OperatorType &op, const PreconditionerType &preconditioner)
store pointer to linear operator and preconditioner
Definition inverseoperatorinterface.hh:122
Traits::AssembledOperatorType AssembledOperatorType
Definition inverseoperatorinterface.hh:52
Traits::SolverDiscreteFunctionType SolverDiscreteFunctionType
Definition inverseoperatorinterface.hh:49
bool rightHandSideCopied_
Definition inverseoperatorinterface.hh:247
BartonNackmanInterface< InverseOperatorInterface< Traits >, typename Traits::InverseOperatorType > Base2Type
Definition inverseoperatorinterface.hh:40
bool verbose_
Definition inverseoperatorinterface.hh:248
std::shared_ptr< SolverParameterType > parameter_
Definition inverseoperatorinterface.hh:236
Traits::InverseOperatorType InverseOperatorType
Definition inverseoperatorinterface.hh:44
Traits::PreconditionerType PreconditionerType
Definition inverseoperatorinterface.hh:53
virtual void allocateMemory(const SolverDiscreteFunctionSpaceType &uSpace, const SolverDiscreteFunctionSpaceType &wSpace) const
Definition inverseoperatorinterface.hh:197
BaseType::DomainFunctionType DomainFunctionType
Definition inverseoperatorinterface.hh:46
const AssembledOperatorType * assembledOperator_
Definition inverseoperatorinterface.hh:239
Traits::OperatorType BaseType
Definition inverseoperatorinterface.hh:39
void opApply(const SolverDiscreteFunctionType &u, SolverDiscreteFunctionType &w) const
Definition inverseoperatorinterface.hh:189
void bind(const OperatorType &op)
store pointer to linear operator
Definition inverseoperatorinterface.hh:110
SolverDiscreteFunctionType::DiscreteFunctionSpaceType SolverDiscreteFunctionSpaceType
Definition inverseoperatorinterface.hh:50
Traits::OperatorType OperatorType
Definition inverseoperatorinterface.hh:51
int iterations() const
return number of iterations used in previous call of application operator
Definition inverseoperatorinterface.hh:132
std::function< bool(const RangeFunctionType &w, const RangeFunctionType &dw, double residualNorm) > ErrorMeasureType
type of error measure (used by NewtonInverseOperator primnarily)
Definition inverseoperatorinterface.hh:59
BaseType::RangeFunctionType RangeFunctionType
Definition inverseoperatorinterface.hh:47
virtual SolverInfoType info() const
Return performance info about last solver call.
Definition inverseoperatorinterface.hh:135
void setParameters(const SolverParameterType &newParams)
set complete set of linear inverse operator parameters
Definition inverseoperatorinterface.hh:152
T forward(T... args)
T reset(T... args)
T swap(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8