yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10611
[Branch ~yade-pkg/yade/git-trunk] Rev 3857: added O.stopAtTime (question246284)
------------------------------------------------------------
revno: 3857
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Mon 2014-03-31 13:44:57 +0200
message:
added O.stopAtTime (question246284)
modified:
py/wrapper/yadeWrapper.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/wrapper/yadeWrapper.cpp'
--- py/wrapper/yadeWrapper.cpp 2014-02-28 16:34:58 +0000
+++ py/wrapper/yadeWrapper.cpp 2014-03-31 11:44:57 +0000
@@ -626,6 +626,8 @@
bool dynDtAvailable_get(){ return OMEGA.getScene()->timeStepperPresent(); }
long stopAtIter_get(){return OMEGA.getScene()->stopAtIter; }
void stopAtIter_set(long s){OMEGA.getScene()->stopAtIter=s; }
+ long stopAtTime_get(){return OMEGA.getScene()->stopAtTime; }
+ void stopAtTime_set(long s){OMEGA.getScene()->stopAtTime=s; }
bool timingEnabled_get(){return TimingInfo::enabled;}
@@ -827,6 +829,7 @@
.add_property("subStep",&pyOmega::subStep,"Get the current subStep number (only meaningful if O.subStepping==True); -1 when outside the loop, otherwise either 0 (O.subStepping==False) or number of engine to be run (O.subStepping==True)")
.add_property("subStepping",&pyOmega::subStepping_get,&pyOmega::subStepping_set,"Get/set whether subStepping is active.")
.add_property("stopAtIter",&pyOmega::stopAtIter_get,&pyOmega::stopAtIter_set,"Get/set number of iteration after which the simulation will stop.")
+ .add_property("stopAtTime",&pyOmega::stopAtTime_get,&pyOmega::stopAtTime_set,"Get/set time after which the simulation will stop.")
.add_property("time",&pyOmega::time,"Return virtual (model world) time of the simulation.")
.add_property("realtime",&pyOmega::realTime,"Return clock (human world) time the simulation has been running.")
.add_property("speed",&pyOmega::speed,"Return current calculation speed [iter/sec].")