From a0c215a40cbef717ccbf9a658cd23dc752399648 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 12 May 2010 11:09:04 +0200 Subject: [PATCH] allow node-interpolated hdf5 dump --- FDTD/processfields.cpp | 17 +++++++++++------ FDTD/processfields_td.cpp | 2 ++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/FDTD/processfields.cpp b/FDTD/processfields.cpp index a4d62b2..cd01c6a 100644 --- a/FDTD/processfields.cpp +++ b/FDTD/processfields.cpp @@ -58,16 +58,21 @@ void ProcessFields::InitProcess() unsigned int* NrLines; double** Lines; - if (m_DumpMode==CELL_INTERPOLATE) - { - NrLines = numDLines; - Lines = discDLines; - } - else if (m_DumpMode==NO_INTERPOLATION) + if (m_DumpMode==NO_INTERPOLATION) { NrLines = numLines; Lines = discLines; } + else if (m_DumpMode==NODE_INTERPOLATE) + { + NrLines = numLines; + Lines = discLines; + } + else if (m_DumpMode==CELL_INTERPOLATE) + { + NrLines = numDLines; + Lines = discDLines; + } else return; diff --git a/FDTD/processfields_td.cpp b/FDTD/processfields_td.cpp index 0d0f2a7..22f2099 100644 --- a/FDTD/processfields_td.cpp +++ b/FDTD/processfields_td.cpp @@ -388,6 +388,8 @@ int ProcessFieldsTD::Process() { if (m_DumpMode==NO_INTERPOLATION) DumpNoInterpol(m_fileName); + if (m_DumpMode==NODE_INTERPOLATE) + DumpNodeInterpol(m_fileName); if (m_DumpMode==CELL_INTERPOLATE) DumpCellInterpol(m_fileName); }