setup: parse MaxTime from xml, #44

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2019-02-13 19:26:27 +01:00
parent b37cb008b0
commit de2317278b

View File

@ -716,6 +716,11 @@ bool openEMS::Parse_XML_FDTDSetup(TiXmlElement* FDTD_Opts)
this->SetupCylinderMultiGrid(string(cchelp));
}
dhelp = 0;
FDTD_Opts->QueryDoubleAttribute("MaxTime",&dhelp);
if (dhelp>0)
this->SetMaxTime(dhelp);
dhelp = 0;
FDTD_Opts->QueryDoubleAttribute("endCriteria",&dhelp);
if (dhelp==0)