From d64e43a73c76a4df8bfe75bffb605029ca7f3871 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 6 Nov 2012 12:46:54 +0100 Subject: [PATCH] run post processing after final time evaluation Signed-off-by: Thorsten Liebig --- FDTD/openems_fdtd_mpi.cpp | 7 +++---- openems.cpp | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/FDTD/openems_fdtd_mpi.cpp b/FDTD/openems_fdtd_mpi.cpp index ed4d81e..6b28207 100644 --- a/FDTD/openems_fdtd_mpi.cpp +++ b/FDTD/openems_fdtd_mpi.cpp @@ -514,10 +514,6 @@ void openEMS_FDTD_MPI::RunFDTD() cerr << "RunFDTD: max. number of timesteps was reached before the end-criteria of -" << fabs(10.0*log10(endCrit)) << "dB was reached... " << endl << \ "\tYou may want to choose a higher number of max. timesteps... " << endl; - PA->PostProcess(); - - //*************** postproc ************// - prevTime = currTime; gettimeofday(&currTime,NULL); t_diff = CalcDiffTime(currTime,startTime); @@ -530,4 +526,7 @@ void openEMS_FDTD_MPI::RunFDTD() if (m_DumpStats) DumpStatistics(__OPENEMS_STAT_FILE__, t_diff); } + + //*************** postproc ************// + PA->PostProcess(); } diff --git a/openems.cpp b/openems.cpp index 4112c30..4a563c9 100644 --- a/openems.cpp +++ b/openems.cpp @@ -855,12 +855,7 @@ void openEMS::RunFDTD() cerr << "RunFDTD: Warning: Max. number of timesteps was reached before the end-criteria of -" << fabs(10.0*log10(endCrit)) << "dB was reached... " << endl << \ "\tYou may want to choose a higher number of max. timesteps... " << endl; - PA->PostProcess(); - - //*************** postproc ************// - prevTime = currTime; gettimeofday(&currTime,NULL); - t_diff = CalcDiffTime(currTime,startTime); cout << "Time for " << FDTD_Eng->GetNumberOfTimesteps() << " iterations with " << FDTD_Op->GetNumberCells() << " cells : " << t_diff << " sec" << endl; @@ -868,6 +863,9 @@ void openEMS::RunFDTD() if (m_DumpStats) DumpStatistics(__OPENEMS_STAT_FILE__, t_diff); + + //*************** postproc ************// + PA->PostProcess(); } bool openEMS::DumpStatistics(const string& filename, double time)