From: Timo Heister Date: Sun, 3 Apr 2016 08:35:50 +0000 (+0200) Subject: tests: restore option to print to console with deallog X-Git-Tag: v8.5.0-rc1~1149^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f48d67fa6d70e22da1fddadf8af109205ffb7563;p=dealii.git tests: restore option to print to console with deallog The recent change to the default of deallog.depth_console (now 0) broke the bool console parameter to the various init() functions used in tests. Restore this feature. --- diff --git a/tests/tests.h b/tests/tests.h index 086ef88cab..7a1dd16a80 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -309,8 +309,7 @@ initlog(bool console=false) deallogname = "output"; deallogfile.open(deallogname.c_str()); deallog.attach(deallogfile); - if (!console) - deallog.depth_console(0); + deallog.depth_console(console?10:0); //TODO: Remove this line and replace by test_mode() deallog.threshold_float(1.e-8); @@ -328,8 +327,7 @@ mpi_initlog(bool console=false) deallogname = "output"; deallogfile.open(deallogname.c_str()); deallog.attach(deallogfile); - if (!console) - deallog.depth_console(0); + deallog.depth_console(console?10:0); //TODO: Remove this line and replace by test_mode() deallog.threshold_float(1.e-8); @@ -355,8 +353,7 @@ struct MPILogInitAll deallogname = deallogname + Utilities::int_to_string(myid); deallogfile.open(deallogname.c_str()); deallog.attach(deallogfile); - if (!console) - deallog.depth_console(0); + deallog.depth_console(console?10:0); //TODO: Remove this line and replace by test_mode() deallog.threshold_float(1.e-8);