diff --git a/src/pe/raytracing/Raytracer.cpp b/src/pe/raytracing/Raytracer.cpp index bcbfbce83afdd0452c981e1b9e5910e57e5d9780..400c165c9fcac3074f00ad0baa79ea88706e92de 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"); } }