← Back to team overview

yade-dev team mailing list archive

[svn] r1767 - trunk/core

 

Author: eudoxos
Date: 2009-05-05 08:53:11 +0200 (Tue, 05 May 2009)
New Revision: 1767

Modified:
   trunk/core/yade.cpp
Log:
1. Warn in --version if -ffast-math was used


Modified: trunk/core/yade.cpp
===================================================================
--- trunk/core/yade.cpp	2009-05-05 05:15:26 UTC (rev 1766)
+++ trunk/core/yade.cpp	2009-05-05 06:53:11 UTC (rev 1767)
@@ -158,9 +158,12 @@
 		"   YADE_OPENMP   (supports openMP; set OMP_NUM_THREADS env. var to control parallelism.\n"
 	#endif
 	#ifdef LOG4CXX
-		"   LOG4CXX       configurable logging framework enabled (~/.yade-suffix/logging.conf)"
+		"   LOG4CXX       configurable logging framework enabled (~/.yade-suffix/logging.conf)\n"
 	#endif
-	"\n";
+	;
+	if(!isnan(std::numeric_limits<double>::quiet_NaN())) cerr<<
+		"   -ffast-math?  WARNING: NaN's will not work"<<endl;
+
 }