From 1a818f659b8add0cf23a7ab023d5f18ac68d3d98 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Fri, 3 Sep 2010 11:36:59 +0200 Subject: [PATCH] Read a forced timestep from xml --- openems.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openems.cpp b/openems.cpp index aa41423..bf69279 100644 --- a/openems.cpp +++ b/openems.cpp @@ -345,6 +345,11 @@ int openEMS::SetupFDTD(const char* file) if (CSX.GetQtyPropertyType(CSProperties::LORENTZMATERIAL)>0) FDTD_Op->AddExtension(new Operator_Ext_LorentzMaterial(FDTD_Op)); + double timestep=0; + FDTD_Opts->QueryDoubleAttribute("TimeStep",×tep); + if (timestep) + FDTD_Op->SetTimestep(timestep); + FDTD_Op->CalcECOperator(); unsigned int maxTime_TS = (unsigned int)(maxTime/FDTD_Op->GetTimestep());