mesh fix in not interpolated H-field dumps
parent
33a258da42
commit
2fbb8ffdf5
|
@ -77,8 +77,9 @@ void ProcessFields::SetDumpMode(Engine_Interface_Base::InterpolationType mode)
|
||||||
m_Eng_Interface->SetInterpolationType(mode);
|
m_Eng_Interface->SetInterpolationType(mode);
|
||||||
if (mode==Engine_Interface_Base::CELL_INTERPOLATE)
|
if (mode==Engine_Interface_Base::CELL_INTERPOLATE)
|
||||||
m_dualMesh=true;
|
m_dualMesh=true;
|
||||||
else
|
else if (mode==Engine_Interface_Base::NODE_INTERPOLATE)
|
||||||
m_dualMesh=false;
|
m_dualMesh=false;
|
||||||
|
//else keep the preset/user defined case
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessFields::DefineStartStopCoord(double* dstart, double* dstop)
|
void ProcessFields::DefineStartStopCoord(double* dstart, double* dstop)
|
||||||
|
|
|
@ -540,7 +540,11 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
ProcField->SetEnable(Enable_Dumps);
|
ProcField->SetEnable(Enable_Dumps);
|
||||||
ProcField->SetProcessInterval(Nyquist/m_OverSampling);
|
ProcField->SetProcessInterval(Nyquist/m_OverSampling);
|
||||||
if ((db->GetDumpType()==1) || (db->GetDumpType()==11))
|
if ((db->GetDumpType()==1) || (db->GetDumpType()==11))
|
||||||
|
{
|
||||||
ProcField->SetDualTime(true);
|
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))
|
if ((db->GetDumpType()==10) || (db->GetDumpType()==11))
|
||||||
ProcField->AddFrequency(db->GetFDSamples());
|
ProcField->AddFrequency(db->GetFDSamples());
|
||||||
if (db->GetDumpType()>=10)
|
if (db->GetDumpType()>=10)
|
||||||
|
|
Loading…
Reference in New Issue