From f0189bb02ae293bb6ebf442b1b431a2fc63ce698 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 2 Apr 2020 22:54:23 -0500 Subject: [PATCH] fix documentation --- examples/step-69/step-69.cc | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index c201e69dac..a8c81a5085 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -2740,8 +2740,8 @@ namespace Step69 // @sect5{Output and checkpointing} // - // Writing out the final vtk files is a quite IO intensive task that can - // stall the main loop quite a bit. In order to avoid this we use an asynchronous // IO strategy by creating a background thread that will perform IO // while the main loop is allowed to continue. In order for this to work @@ -2766,14 +2766,9 @@ namespace Step69 // If the asynchronous writeback option is set we launch a background // thread performing all the slow IO to disc. In that case we have to // make sure that the background thread actually finished running. If - // not, we have to wait to for it to finish because we would otherwise - // overwrite output_vector, rerun the - // schlieren_postprocessor and - // DataOut::build_patches() prematurely before the output of the - // previous output cycle has been fully written out to disk. - // - // We launch said background thread with std::async + // not, we have to wait to for it to finish. We launch said background + // thread with std::async() // that returns a std::future // object. This std::future object contains the return @@ -2827,7 +2822,6 @@ namespace Step69 // the this pointer as well as most of the arguments of // the output function by value so that we have access to them inside // the lambda function. - const auto output_worker = [this, name, t, cycle, checkpoint, data_out]() { if (checkpoint) { @@ -2869,7 +2863,6 @@ namespace Step69 // At this point we can return from the output() function // and resume with the time stepping in the main loop - the thread will // run in the background. - if (!asynchronous_writeback) { background_thread_state = std::async(std::launch::async, output_worker); -- 2.39.5