On 08/10/14 12:59, Christian Jakob wrote:
>
> I think we can improve it a bit: Every call of updateStiffness will
> now lead to a loop over all engines.
It is ok. The time for this loop is for sure negligible, and this way it
is safe to add/remove the engine during the simulation.

> But we just need the loop done once. Also it does not check if
> FlowEngine is activated ...
Yes, if dead it should not be counted.
Note that this flow.isActivated is useless since there is engine.dead.
Don't use it, I want to remove it.

Bruno


_______________________________________________
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