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; m_DumpType = E_FIELD_DUMP;
// vtk-file is default // vtk-file is default
m_fileType = VTK_FILETYPE; m_fileType = VTK_FILETYPE;
SetSubSampling(1); subSample[0]=1;
subSample[1]=1;
subSample[2]=1;
m_SampleType = NONE; m_SampleType = NONE;
SetPrecision(6); SetPrecision(6);
m_dualTime = false; m_dualTime = false;

View File

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