60 const TiXmlElement *pXml)
70 const TiXmlElement *pXmlparameter;
72 pXmlparameter = pXml->FirstChildElement(
"START");
73 m_start = atof(pXmlparameter->GetText());
75 pXmlparameter = pXml->FirstChildElement(
"DURATION");
76 m_dur = atof(pXmlparameter->GetText());
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
LibUtilities::SessionReaderSharedPtr m_session
Session.
static std::string className
Name of class.
ProtocolSingle(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
virtual void v_SetInitialConditions()
void v_GenerateSummary(SolverUtils::SummaryList &s) override
NekDouble v_GetAmplitude(const NekDouble time) override
static ProtocolSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
Creates an instance of this class.
void Initialise()
Initialise the protocol storage and set initial conditions.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::vector< std::pair< std::string, std::string > > SummaryList
ProtocolFactory & GetProtocolFactory()