Read a forced timestep from xml
parent
db0f4ab3e0
commit
1a818f659b
|
@ -345,6 +345,11 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
if (CSX.GetQtyPropertyType(CSProperties::LORENTZMATERIAL)>0)
|
if (CSX.GetQtyPropertyType(CSProperties::LORENTZMATERIAL)>0)
|
||||||
FDTD_Op->AddExtension(new Operator_Ext_LorentzMaterial(FDTD_Op));
|
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();
|
FDTD_Op->CalcECOperator();
|
||||||
|
|
||||||
unsigned int maxTime_TS = (unsigned int)(maxTime/FDTD_Op->GetTimestep());
|
unsigned int maxTime_TS = (unsigned int)(maxTime/FDTD_Op->GetTimestep());
|
||||||
|
|
Loading…
Reference in New Issue