From 450a2a6166ae8a66f493e8fc886746b741f4b65d Mon Sep 17 00:00:00 2001
From: Lukas Werner <lks.werner@fau.de>
Date: Tue, 27 Mar 2018 17:50:53 +0200
Subject: [PATCH] Fix output timing of raytracer

---
 src/pe/raytracing/Raytracer.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pe/raytracing/Raytracer.cpp b/src/pe/raytracing/Raytracer.cpp
index bcbfbce83..400c165c9 100644
--- a/src/pe/raytracing/Raytracer.cpp
+++ b/src/pe/raytracing/Raytracer.cpp
@@ -412,13 +412,13 @@ void Raytracer::localOutput(const std::vector<BodyIntersectionInfo>& intersectio
 }
 
 void Raytracer::output(const std::vector<BodyIntersectionInfo>& intersectionsBuffer, size_t timestep, WcTimingTree* tt) {
+   if (tt != NULL) tt->start("Output");
    WALBERLA_ROOT_SECTION() {
-      if (tt != NULL) tt->start("Output");
       if (getImageOutputEnabled()) {
          writeImageToFile(intersectionsBuffer, timestep, true);
       }
-      if (tt != NULL) tt->stop("Output");
    }
+   if (tt != NULL) tt->stop("Output");
 }
 
 }
-- 
GitLab