yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07655
[Branch ~yade-dev/yade/trunk] Rev 2864: -shift returned p index
------------------------------------------------------------
revno: 2864
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
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)