← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2965: Return back fix from r2961. Bruno, please, make a check before commit.

 

------------------------------------------------------------
revno: 2965
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Wed 2011-11-23 16:33:01 +0100
message:
  Return back fix from r2961. Bruno, please, make a check before commit.
modified:
  pkg/dem/GlobalStiffnessTimeStepper.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/GlobalStiffnessTimeStepper.cpp'
--- pkg/dem/GlobalStiffnessTimeStepper.cpp	2011-11-23 12:05:49 +0000
+++ pkg/dem/GlobalStiffnessTimeStepper.cpp	2011-11-23 15:33:01 +0000
@@ -73,6 +73,7 @@
 	BodyContainer::iterator biEnd = bodies->end();
 	for(  ; bi!=biEnd ; ++bi )
 	{
+		if (!*bi)  continue;
 		shared_ptr<Body> b = *bi;
 		if (b->isDynamic()) findTimeStepFromBody(b, ncb);
 	}


Follow ups