From 54344b1b86d5a0405d6cb3d11c9ceae17d93d9f8 Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Sat, 27 Mar 2010 15:26:20 +0100 Subject: [PATCH] bug: field dumper directly access protected numTS member variable... --- FDTD/engine_multithread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FDTD/engine_multithread.cpp b/FDTD/engine_multithread.cpp index 6f3fa67..d180c66 100644 --- a/FDTD/engine_multithread.cpp +++ b/FDTD/engine_multithread.cpp @@ -40,6 +40,7 @@ void Engine_Multithread::Init() Engine::Init(); numTS = 0; + m_numTS_times_threads = 0; // initialize threads m_numThreads = boost::thread::hardware_concurrency(); @@ -77,6 +78,7 @@ bool Engine_Multithread::IterateTS(unsigned int iterTS) //cout << "... threads started"; m_stopBarrier->wait(); // wait for the threads to finish time steps + numTS = m_numTS_times_threads; return true; }