diff options
Diffstat (limited to 'openEMS/openems.cpp')
-rw-r--r-- | openEMS/openems.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/openEMS/openems.cpp b/openEMS/openems.cpp index 72476d3..1d08ef7 100644 --- a/openEMS/openems.cpp +++ b/openEMS/openems.cpp @@ -418,11 +418,13 @@ bool openEMS::SetupProcessing() } if (CylinderCoords) proc->SetMeshType(Processing::CYLINDRICAL_MESH); - if ((pb->GetProbeType()==1) || (pb->GetProbeType()==3) || (pb->GetProbeType()==11)) + if ((pb->GetProbeType()==1) || (pb->GetProbeType()==3)) { proc->SetDualTime(true); proc->SetDualMesh(true); } + if (pb->GetProbeType()==11) + proc->SetDualTime(true); proc->SetProcessInterval(Nyquist/m_OverSampling); if (pb->GetStartTime()>0 || pb->GetStopTime()>0) proc->SetProcessStartStopTime(pb->GetStartTime(), pb->GetStopTime()); @@ -715,9 +717,7 @@ bool openEMS::Parse_XML_FDTDSetup(TiXmlElement* FDTD_Opts) ihelp = 0; FDTD_Opts->QueryIntAttribute("OverSampling",&ihelp); - if (ihelp<2) - this->SetOverSampling(2); - else + if (ihelp>1) this->SetOverSampling(ihelp); // check for cell constant material averaging @@ -821,6 +821,7 @@ bool openEMS::Parse_XML_FDTDSetup(TiXmlElement* FDTD_Opts) this->SetTimeStep(dhelp); if (FDTD_Opts->QueryDoubleAttribute("TimeStepFactor",&dhelp)==TIXML_SUCCESS) this->SetTimeStepFactor(dhelp); + return true; } void openEMS::SetGaussExcite(double f0, double fc) |