From f9a9f8ed0f684e3cb9cf382dc6766f133257e0dd Mon Sep 17 00:00:00 2001 From: kanschat Date: Sun, 4 Dec 2011 23:29:52 +0000 Subject: [PATCH] remove overloaded function which never should have been here git-svn-id: https://svn.dealii.org/trunk@24792 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/tests.h | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/tests/tests.h b/tests/tests.h index 90e34769f0..e7bec33035 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -53,34 +53,12 @@ initlog(const char* filename, bool console=false) deallog.attach(deallogfile); if (!console) deallog.depth_console(0); -} - -// overload floating point output operators for LogStream so that small -// numbers below a certain threshold are simply printed as zeros. this removes -// a number of possible places where output may differ depending on platform, -// compiler options, etc, simply because round-off is different. -inline -LogStream & operator << (LogStream &logstream, - const float d) -{ - if (std::fabs (d) < 1e-8) - logstream. -#ifdef DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG - template -#endif - operator << (0.); - else - logstream. -#ifdef DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG - template -#endif - operator << (d); - return logstream; +//TODO: Remove this line and replace by test_mode() + deallog.threshold_float(1.e-8); } - #ifndef DEAL_II_STACKTRACE_SWITCH #define DEAL_II_STACKTRACE_SWITCH -- 2.39.5