setup: parse MaxTime from xml, #44

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/45/head
Thorsten Liebig 2019-02-13 19:26:27 +01:00
parent b37cb008b0
commit de2317278b
1 changed files with 5 additions and 0 deletions

View File

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