------------------------------------------------------------
revno: 2202
committer: Janek Kozicki <[email protected]>
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 )
 			{

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to