]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove overloaded function which never should have been here
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 4 Dec 2011 23:29:52 +0000 (23:29 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 4 Dec 2011 23:29:52 +0000 (23:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@24792 0785d39b-7218-0410-832d-ea1e28bc413d

tests/tests.h

index 90e34769f010145baff3f3a0f6b3603e2f745172..e7bec330358e6cd013c136febc0bc8db4c0573d8 100644 (file)
@@ -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 << <float> (0.);
-  else
-    logstream.
-#ifdef DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG
-      template
-#endif
-      operator << <float> (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
 

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.