← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2658: -fix compile error in prev commit.

 

------------------------------------------------------------
revno: 2658
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: yade
timestamp: Mon 2011-01-17 17:20:12 +0100
message:
  -fix compile error in prev commit.
modified:
  pkg/dem/Shop.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/Shop.cpp'
--- pkg/dem/Shop.cpp	2011-01-17 15:44:53 +0000
+++ pkg/dem/Shop.cpp	2011-01-17 16:20:12 +0000
@@ -586,7 +586,6 @@
 		//Sum f_i*l_j/V for each contact of each particle
 		bStresses[I->getId1()]-=(3.0/(4.0*Mathr::PI*pow(geom->refR1,3)))*f*((geom->contactPoint-Body::byId(I->getId1(),scene)->state->pos).transpose());
 		bStresses[I->getId2()]+=(3.0/(4.0*Mathr::PI*pow(geom->refR2,3)))*f*((geom->contactPoint-Body::byId(I->getId2(),scene)->state->pos).transpose());
-		totStress+=f*((Body::byId(I->getId1(),scene)->state->pos - Body::byId(I->getId2(),scene)->state->pos).transpose());
 	}
 }