← Back to team overview

yade-users team mailing list archive

Re: What code to type to stop simulations ?

 

 
>> YourEngineName::applyCondition(Body* body)
>> {
>>   Omega::instance().stopSimulationLoop();
>> }
>> You can look at the previous posts. Or the class definition of Omaga,
>> I forgot where:-)
stopSimulationLoop() may be delayed (is called from different thread) so
it will not stop with the precision of 1 iteration. If you need that,
you can set
Omega::instance().stopAtIteration=Omega::instance().getCurrentIteration()+1.

Regards, VS.

_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users



References