From: Matthias Maier Date: Fri, 3 Apr 2020 03:54:23 +0000 (-0500) Subject: fix documentation X-Git-Tag: v9.2.0-rc1~305^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0189bb02ae293bb6ebf442b1b431a2fc63ce698;p=dealii.git fix documentation --- 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);