------------------------------------------------------------
revno: 2864
committer: Bruno Chareyre <[email protected]>
branch nick: trunk
timestamp: Wed 2011-05-18 09:06:02 +0200
message:
  -shift returned p index
modified:
  pkg/dem/FlowEngine.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/FlowEngine.cpp'
--- pkg/dem/FlowEngine.cpp	2011-05-17 17:48:28 +0000
+++ pkg/dem/FlowEngine.cpp	2011-05-18 07:06:02 +0000
@@ -178,7 +178,7 @@
 	flow->imposedP.push_back( pair<CGT::Point,Real>(CGT::Point(pos[0],pos[1],pos[2]),p) );
 	//force immediate update of boundary conditions
 	Update_Triangulation=true;
-	return flow->imposedP.size();
+	return flow->imposedP.size()-1;
 }
 
 void FlowEngine::setImposedPressure(unsigned int cond, Real p)

_______________________________________________
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