45 typedef memory::shared_ptr<gsIterative> Ptr;
46 typedef memory::unique_ptr<gsIterative> uPtr;
122 std::vector<gsMatrix<T> > ddofsSaved;
127#ifndef GISMO_BUILD_LIB
128#include GISMO_HPP_HEADER(gsIterative.hpp)
Extends the gsAssembler class by adding functionality necessary for a general nonlinear solver....
Definition gsBaseAssembler.h:27
A general iterative solver for nonlinear problems. An equation to solve is specified by an assembler ...
Definition gsIterative.h:43
bool compute()
computes update or the next solution
Definition gsIterative.hpp:117
index_t numberIterations() const
number of iteration that Newton's method took
Definition gsIterative.h:93
void setSolutionVector(const gsMatrix< T > &solutionVector)
set initial guess
Definition gsIterative.h:96
solver_status m_status
number of iterations performed
Definition gsIterative.h:113
T initResidualNorm
norm of the residual vector
Definition gsIterative.h:115
virtual void setFixedDofs(const std::vector< gsMatrix< T > > &ddofs)
set all fixed degrees of freedom
Definition gsIterative.hpp:211
T updateNorm
norm of the residual vector at the beginning of the loop
Definition gsIterative.h:116
gsBaseAssembler< T > & assembler
assembler object that generates the linear system
Definition gsIterative.h:106
T residualNorm
status of the solver (converged, interrupted, working)
Definition gsIterative.h:114
gsOptionList m_options
option list
Definition gsIterative.h:119
std::string status()
return solver status as a string
Definition gsIterative.hpp:189
void recoverState()
recover solver state from saved state
Definition gsIterative.hpp:232
gsMatrix< T > solVector
solution vector
Definition gsIterative.h:108
const gsMatrix< T > & solution() const
returns the solution vector
Definition gsIterative.h:78
void saveState()
save solver state
Definition gsIterative.hpp:225
gsOptionList & options()
get options list to read or set parameters
Definition gsIterative.h:69
T initUpdateNorm
norm of the update vector
Definition gsIterative.h:117
void reset()
reset the solver state
Definition gsIterative.hpp:64
static gsOptionList defaultOptions()
default option list. used for initialization
Definition gsIterative.hpp:75
index_t numIterations
-— status variables --— ///
Definition gsIterative.h:112
std::vector< gsMatrix< T > > fixedDoFs
current Dirichlet DoFs that the solution satisfies
Definition gsIterative.h:110
void solve()
solution procedure
Definition gsIterative.hpp:91
const std::vector< gsMatrix< T > > & allFixedDofs() const
returns the fixed degrees of freedom
Definition gsIterative.h:81
A matrix with arbitrary coefficient type and fixed or dynamic size.
Definition gsMatrix.h:41
Class which holds a list of parameters/options, and provides easy access to them.
Definition gsOptionList.h:33
Provides several simple utility and naming classes.
#define index_t
Definition gsConfig.h:32
Provides a list of labeled parameters/options that can be set and accessed easily.
The G+Smo namespace, containing all definitions for the library.
solver_status
Specifies the status of the iterative solver.
Definition gsBaseUtils.h:99