Author: cosurgi
Date: 2008-08-14 20:28:51 +0200 (Thu, 14 Aug 2008)
New Revision: 1469
Modified:
trunk/pkg/fem/PreProcessor/FEMBeam.cpp
trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp
Log:
use NDEBUG to detect optimized builds in FEMBeam and HangingCloth
Modified: trunk/pkg/fem/PreProcessor/FEMBeam.cpp
===================================================================
--- trunk/pkg/fem/PreProcessor/FEMBeam.cpp 2008-08-14 17:17:50 UTC (rev
1468)
+++ trunk/pkg/fem/PreProcessor/FEMBeam.cpp 2008-08-14 18:28:51 UTC (rev
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
Modified: trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp
===================================================================
--- trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp 2008-08-14 17:17:50 UTC
(rev 1468)
+++ trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp 2008-08-14 18:28:51 UTC
(rev 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
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp