From de2317278ba7ccaf708b7df6c360be2f64e48ec3 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 13 Feb 2019 19:26:27 +0100 Subject: [PATCH] setup: parse MaxTime from xml, #44 Signed-off-by: Thorsten Liebig --- openems.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openems.cpp b/openems.cpp index 4e32bf8..7245c7f 100644 --- a/openems.cpp +++ b/openems.cpp @@ -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)