G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsContinuationBase.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 namespace gismo
17 {
18 
26 template <class T>
28 {
29 public:
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 
41 public:
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 
50 protected:
51  gsOptionList m_options;
52 
53 };
54 
55 } // namespace gismo
gsStatus
Definition: gsStructuralAnalysisTypes.h:20
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
Base class for simple continuation schemes.
Definition: gsContinuationBase.h:27
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
Class which holds a list of parameters/options, and provides easy access to them. ...
Definition: gsOptionList.h:32