------------------------------------------------------------
revno: 2047
committer: Václav Šmilauer <[email protected]>
branch nick: trunk
timestamp: Tue 2010-02-23 13:39:54 +0100
message:
  1. Add scene->forces.sync() to several places
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-02-17 10:25:54 +0000
+++ pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp	2010-02-23 12:39:54 +0000
@@ -125,6 +125,8 @@
 
 void TriaxialStressController::controlExternalStress(int wall, Scene* ncb, Vector3r resultantForce, State* p, Real wall_max_vel)
 {
+	ncb->forces.sync();
+
 	Real translation=normal[wall].Dot( getForce(ncb,wall_id[wall]) - resultantForce); 
 	//bool log=((wall==3) && (Omega::instance().getCurrentIteration()%200==0));
 	const bool log=false;
@@ -266,6 +268,8 @@
  */
 void TriaxialStressController::computeStressStrain(Scene* ncb)
 {
+	ncb->force.sync();
+
 	State* p_bottom=Body::byId(wall_bottom_id,ncb)->state.get();
 	State* p_top=Body::byId(wall_top_id,ncb)->state.get();
 	State* p_left=Body::byId(wall_left_id,ncb)->state.get();

_______________________________________________
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