]> https://gitweb.dealii.org/ - dealii.git/commitdiff
also change out_stream condition when enable/disable_output 16726/head
authorChengjiang Yin <richard_ycj@outlook.com>
Thu, 7 Mar 2024 08:35:09 +0000 (16:35 +0800)
committerGitHub <noreply@github.com>
Thu, 7 Mar 2024 08:35:09 +0000 (16:35 +0800)
source/base/timer.cc

index 025567cc1b423b566bd54ead24d1576089ad9714..41dd6378b674a6dcf09e33ec70e9197eca12e90b 100644 (file)
@@ -1018,6 +1018,7 @@ void
 TimerOutput::disable_output()
 {
   output_is_enabled = false;
+  out_stream.set_condition(false);
 }
 
 
@@ -1026,6 +1027,7 @@ void
 TimerOutput::enable_output()
 {
   output_is_enabled = true;
+  out_stream.set_condition(true);
 }
 
 void

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.