diff --git a/Common/processfields.cpp b/Common/processfields.cpp index 938249c..88663e5 100644 --- a/Common/processfields.cpp +++ b/Common/processfields.cpp @@ -77,8 +77,9 @@ void ProcessFields::SetDumpMode(Engine_Interface_Base::InterpolationType mode) m_Eng_Interface->SetInterpolationType(mode); if (mode==Engine_Interface_Base::CELL_INTERPOLATE) m_dualMesh=true; - else + else if (mode==Engine_Interface_Base::NODE_INTERPOLATE) m_dualMesh=false; + //else keep the preset/user defined case } void ProcessFields::DefineStartStopCoord(double* dstart, double* dstop) diff --git a/openems.cpp b/openems.cpp index 60944c1..49ec04e 100644 --- a/openems.cpp +++ b/openems.cpp @@ -540,7 +540,11 @@ int openEMS::SetupFDTD(const char* file) ProcField->SetEnable(Enable_Dumps); ProcField->SetProcessInterval(Nyquist/m_OverSampling); if ((db->GetDumpType()==1) || (db->GetDumpType()==11)) + { ProcField->SetDualTime(true); + //make dualMesh the default mesh for h-field dumps, maybe overwritten by interpolation type (node-interpolation) + ProcField->SetDualMesh(true); + } if ((db->GetDumpType()==10) || (db->GetDumpType()==11)) ProcField->AddFrequency(db->GetFDSamples()); if (db->GetDumpType()>=10)