From: kanschat Date: Sun, 4 Dec 2011 23:29:52 +0000 (+0000) Subject: remove overloaded function which never should have been here X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a9f8ed0f684e3cb9cf382dc6766f133257e0dd;p=dealii-svn.git remove overloaded function which never should have been here git-svn-id: https://svn.dealii.org/trunk@24792 0785d39b-7218-0410-832d-ea1e28bc413d --- 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