10 #if !defined(KRATOS_TIME_INTEGRATION_METHODS_CONTAINER_H_INCLUDED)
11 #define KRATOS_TIME_INTEGRATION_METHODS_CONTAINER_H_INCLUDED
47 template<
class TVariableType,
class TValueType>
66 :mTimeIntegrationMethods()
72 :mTimeIntegrationMethods(rOther.mTimeIntegrationMethods)
91 mTimeIntegrationMethods[rLabel] = pTimeIntegrationMethod;
96 return mTimeIntegrationMethods[rLabel];
101 typename std::map<LabelType,TimeIntegrationMethodPointerType>::iterator it_method = mTimeIntegrationMethods.find(rLabel);
103 if ( it_method != mTimeIntegrationMethods.end() )
112 for(
typename std::map<LabelType,TimeIntegrationMethodPointerType>::const_iterator it=mTimeIntegrationMethods.begin(); it!=mTimeIntegrationMethods.end(); ++it)
114 if( (*it->second).HasVariableName(rLabel) )
129 virtual std::string
Info()
const
131 std::stringstream buffer;
132 buffer <<
"TimeIntegrationMethodsContainer\n";
133 for(
typename std::map<LabelType,TimeIntegrationMethodPointerType>::const_iterator it=mTimeIntegrationMethods.begin(); it!=mTimeIntegrationMethods.end(); ++it)
134 buffer <<
"["<<it->first<<
"] = "<<*(it->second)<<
"\n";
141 rOStream <<
"TimeIntegrationMethodsContainer\n";
142 for(
typename std::map<LabelType,TimeIntegrationMethodPointerType>::const_iterator it=mTimeIntegrationMethods.begin(); it!=mTimeIntegrationMethods.end(); ++it)
143 rOStream <<
"["<<it->first<<
"] = "<<*(it->second)<<std::endl;
150 rOStream <<
"TimeIntegrationMethodsContainer Data";
186 std::map<LabelType,TimeIntegrationMethodPointerType> mTimeIntegrationMethods;
199 virtual void save(
Serializer& rSerializer)
const
234 template<
class TVariableType,
class TValueType>
240 template<
class TVariableType,
class TValueType>
243 return rOStream << rThis.
Info();
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Short class definition.
Definition: time_integration_method.hpp:55
Definition: time_integration_methods_container.hpp:49
TimeIntegrationMethodsContainer(TimeIntegrationMethodsContainer const &rOther)
Copy constructor.
Definition: time_integration_methods_container.hpp:71
TimeIntegrationMethodPointerType Get(LabelType const &rLabel)
Definition: time_integration_methods_container.hpp:94
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: time_integration_methods_container.hpp:148
TimeIntegrationMethodsContainer()
Default constructor.
Definition: time_integration_methods_container.hpp:65
TimeIntegrationMethodType::Pointer TimeIntegrationMethodPointerType
Definition: time_integration_methods_container.hpp:58
virtual ~TimeIntegrationMethodsContainer()
Destructor.
Definition: time_integration_methods_container.hpp:77
LabelType GetMethodVariableName(LabelType const &rLabel)
Definition: time_integration_methods_container.hpp:109
virtual std::string Info() const
Turn back information as a string.
Definition: time_integration_methods_container.hpp:129
std::string LabelType
Definition: time_integration_methods_container.hpp:59
TimeIntegrationMethod< TVariableType, TValueType > TimeIntegrationMethodType
Definition: time_integration_methods_container.hpp:57
bool Has(LabelType const &rLabel)
Definition: time_integration_methods_container.hpp:99
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: time_integration_methods_container.hpp:139
void Set(LabelType const &rLabel, TimeIntegrationMethodPointerType pTimeIntegrationMethod)
Definition: time_integration_methods_container.hpp:89
KRATOS_CLASS_POINTER_DEFINITION(TimeIntegrationMethodsContainer)
Pointer definition of TimeIntegrationMethodsContainer.
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307
#define DECLARE_GET_THIS_TYPE_FROM_PROCESS_INFO
Definition: process_info_extensions.hpp:44
#define DECLARE_ADD_THIS_TYPE_TO_PROCESS_INFO
Definition: process_info_extensions.hpp:29
#define DECLARE_HAS_THIS_TYPE_PROCESS_INFO
Definition: process_info_extensions.hpp:14