From 533a0163d6300b97d6144e1207a9d0667e8e55a7 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 27 Dec 2010 21:37:38 +0100 Subject: [PATCH] use CSXCAD sub-sampling flag --- Common/processfields.cpp | 4 +++- openems.cpp | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Common/processfields.cpp b/Common/processfields.cpp index 169b945..50b887f 100644 --- a/Common/processfields.cpp +++ b/Common/processfields.cpp @@ -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; diff --git a/openems.cpp b/openems.cpp index cfe589d..6925fd9 100644 --- a/openems.cpp +++ b/openems.cpp @@ -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);