← Back to team overview

yade-dev team mailing list archive

[svn] r1469 - cosurgi

 

------------------------------------------------------------------------
r1469 | cosurgi | 2008-08-14 20:28:51 +0200 (czw, 14 sie 2008) | 3 lines
Changed paths:
   M /trunk/pkg/fem/PreProcessor/FEMBeam.cpp
   M /trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp

use NDEBUG to detect optimized builds in FEMBeam and HangingCloth


------------------------------------------------------------------------
Index: pkg/mass-spring/PreProcessor/HangingCloth.cpp
===================================================================
--- pkg/mass-spring/PreProcessor/HangingCloth.cpp	(revision 1468)
+++ pkg/mass-spring/PreProcessor/HangingCloth.cpp	(revision 1469)
@@ -438,7 +438,7 @@
 			}
 		}
 	}
-	#ifndef YADE_DEBUG
+	#ifdef NDEBUG
 		message="HangingCloth currently works only in not optimized debug mode and needs to be fixed. If want to try it you must compile with option 'scons optimize=0'";
 		return false;
 	#endif
Index: pkg/fem/PreProcessor/FEMBeam.cpp
===================================================================
--- pkg/fem/PreProcessor/FEMBeam.cpp	(revision 1468)
+++ pkg/fem/PreProcessor/FEMBeam.cpp	(revision 1469)
@@ -129,7 +129,7 @@
 	imposeTranslation(rootBody,regionMin1,regionMax1,translationAxis1,velocity1);
 	imposeTranslation(rootBody,regionMin2,regionMax2,translationAxis2,velocity2);
 
-	#ifndef YADE_DEBUG
+	#ifdef NDEBUG
 		message="FEM currently works only in not optimized debug mode and needs to be fixed. If want to try it you must compile with option 'scons optimize=0'";
 		return false;
 	#endif