← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2202: don't segfault when TriaxialStressController is facing clumps

 

------------------------------------------------------------
revno: 2202
committer: Janek Kozicki <cosurgi@xxxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-05-05 21:06:52 +0200
message:
  don't segfault when TriaxialStressController is facing clumps
modified:
  pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp'
--- pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp	2010-05-03 12:17:44 +0000
+++ pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp	2010-05-05 19:06:52 +0000
@@ -97,6 +97,7 @@
 		spheresVolume = 0;
 		for ( ; bi!=biEnd; ++bi )
 		{
+			if((*bi)->isClump()) continue;
 			const shared_ptr<Body>& b = *bi;
 			if ( b->isDynamic )
 			{