mesh fix in not interpolated H-field dumps

pull/1/head
Thorsten Liebig 2011-01-05 12:11:59 +01:00
parent 33a258da42
commit 2fbb8ffdf5
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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)