G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsContinuationBase.h
Go to the documentation of this file.
1
14#pragma once
15
16namespace gismo
17{
18
26template <class T>
28{
29public:
30 virtual ~gsContinuationBase() {};
32 {
33 defaultOptions();
34 }
35
36
37 virtual gsStatus step(T dL) = 0;
38 virtual gsVector<T> & solutionU() = 0;
39 virtual T solutionL() = 0;
40
41public:
42 void defaultOptions()
43 {
44 m_options.addInt("numSteps","number of steps to be taken",10);
45 m_options.addReal("dL","Step size",1.);
46 }
47
48 gsOptionList options() { return m_options; }
49
50protected:
51 gsOptionList m_options;
52
53};
54
55} // namespace gismo
Base class for simple continuation schemes.
Definition gsContinuationBase.h:28
Class which holds a list of parameters/options, and provides easy access to them.
Definition gsOptionList.h:33
void addInt(const std::string &label, const std::string &desc, const index_t &value)
Adds a option named label, with description desc and value value.
Definition gsOptionList.cpp:201
void addReal(const std::string &label, const std::string &desc, const Real &value)
Adds a option named label, with description desc and value value.
Definition gsOptionList.cpp:211
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition gsVector.h:37
The G+Smo namespace, containing all definitions for the library.
gsStatus
Definition gsStructuralAnalysisTypes.h:21