29 gsInfo<<
"Solver "<<k<<
" out of "<<m_solvers.size()<<
"\n";
33 m_solvers[k]->setUpdate(m_solvers[k-1]->update());
36 m_status = m_solvers[k]->solve();
37 m_numIterations += m_solvers[k]->iterations();
38 m_U = m_solvers[k]->solution();
39 m_DeltaU = m_solvers[k]->update();
47 for (
typename std::vector<
gsStaticBase<T> *>::iterator solver = m_solvers.begin(); solver!=m_solvers.end(); solver++)
48 (*solver)->initialize();
58 m_options.addInt(
"verbose",
"Verbose output",0);
68 m_verbose = m_options.getInt(
"verbose");
74 gsWarn<<
"setOptions cannot be used on a gsStaticComposite solver. Call setOptions on each solver individually\n";
80 for (
typename std::vector<
gsStaticBase<T> *>::iterator solver = m_solvers.begin(); solver!=m_solvers.end(); solver++)
81 (*solver)->setDisplacement(displacement);
87 for (
typename std::vector<
gsStaticBase<T> *>::iterator solver = m_solvers.begin(); solver!=m_solvers.end(); solver++)
88 (*solver)->setLoad(L);
94 for (
typename std::vector<
gsStaticBase<T> *>::iterator solver = m_solvers.begin(); solver!=m_solvers.end(); solver++)
95 (*solver)->setSolution(displacement,L);
101 for (
typename std::vector<
gsStaticBase<T> *>::iterator solver = m_solvers.begin(); solver!=m_solvers.end(); solver++)
102 (*solver)->setUpdate(update);
108 for (
typename std::vector<
gsStaticBase<T> *>::iterator solver = m_solvers.begin(); solver!=m_solvers.end(); solver++)
void setLoad(const T L) override
See gsStaticBase.
Definition: gsStaticComposite.hpp:85
gsStatus solve() override
See gsStaticBase.
Definition: gsStaticComposite.hpp:21
void getOptions() override
See gsStaticBase.
Definition: gsStaticComposite.hpp:62
gsStatus
Definition: gsStructuralAnalysisTypes.h:20
void setSolution(const gsVector< T > &displacement, const T L) override
See gsStaticBase.
Definition: gsStaticComposite.hpp:92
void setUpdate(const gsVector< T > &update) override
See gsStaticBase.
Definition: gsStaticComposite.hpp:99
void defaultOptions() override
See gsStaticBase.
Definition: gsStaticComposite.hpp:52
#define gsWarn
Definition: gsDebug.h:50
void reset() override
See gsStaticBase.
Definition: gsStaticComposite.hpp:106
#define gsInfo
Definition: gsDebug.h:43
void setOptions(gsOptionList &options) override
See gsStaticBase.
Definition: gsStaticComposite.hpp:72
void setDisplacement(const gsVector< T > &displacement) override
See gsStaticBase.
Definition: gsStaticComposite.hpp:78
Class which holds a list of parameters/options, and provides easy access to them. ...
Definition: gsOptionList.h:32
void initialize() override
See gsStaticBase.
Definition: gsStaticComposite.hpp:45
Base class for static solvers.
Definition: gsStaticBase.h:37