← Back to team overview

yade-dev team mailing list archive

[svn] r1836 - trunk/pkg/dem/Engine/DeusExMachina

 

Author: chareyre
Date: 2009-07-02 23:13:56 +0200 (Thu, 02 Jul 2009)
New Revision: 1836

Modified:
   trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp
Log:

Dimensions could be 0 when "updateParameters" was called from TriaxialCompressionEngine before 
TTController::action



Modified: trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp
===================================================================
--- trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp	2009-07-02 20:32:47 UTC (rev 1835)
+++ trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp	2009-07-02 21:13:56 UTC (rev 1836)
@@ -324,10 +324,10 @@
 void TriaxialStressController::computeStressStrain(MetaBody* ncb)
 {
 	
-// 	height = p_top->se3.position.Y() - p_bottom->se3.position.Y() - thickness;
-// 	width = p_right->se3.position.X() - p_left->se3.position.X() - thickness;
-// 	depth = p_front->se3.position.Z() - p_back->se3.position.Z() - thickness;
-	assert(height>0); assert(width>0); assert(depth>0);
+ 	height = p_top->se3.position.Y() - p_bottom->se3.position.Y() - thickness;
+ 	width = p_right->se3.position.X() - p_left->se3.position.X() - thickness;
+ 	depth = p_front->se3.position.Z() - p_back->se3.position.Z() - thickness;
+	//assert(height>0); assert(width>0); assert(depth>0);
 	
 	meanStress = 0;
 	if (height0 == 0) height0 = height;