use CSXCAD sub-sampling flag

pull/1/head
Thorsten Liebig 2010-12-27 21:37:38 +01:00
parent ff9d362d74
commit 533a0163d6
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,9 @@ ProcessFields::ProcessFields(Engine_Interface_Base* eng_if) : Processing(eng_if)
m_DumpType = E_FIELD_DUMP;
// vtk-file is default
m_fileType = VTK_FILETYPE;
SetSubSampling(1);
subSample[0]=1;
subSample[1]=1;
subSample[2]=1;
m_SampleType = NONE;
SetPrecision(6);
m_dualTime = false;

View File

@ -552,8 +552,9 @@ int openEMS::SetupFDTD(const char* file)
ProcField->SetFileType((ProcessFields::FileType)db->GetFileType());
if (CylinderCoords)
ProcField->SetMeshType(Processing::CYLINDRICAL_MESH);
for (int n=0; n<3; ++n)
ProcField->SetSubSampling(db->GetSubSampling(n),n);
if (db->GetSubSampling())
for (int n=0; n<3; ++n)
ProcField->SetSubSampling(db->GetSubSampling(n),n);
ProcField->SetFilePattern(db->GetName());
ProcField->SetFileName(db->GetName());
ProcField->DefineStartStopCoord(start,stop);