Posted Thu, 06 Dec 2012 03:29:42 GMT by Blair Thornburrow Groundwater Modeller
Any hints on how to abort a simulation from an IFM (just like pressing the "stop" button)?

p.s. still new to IFM and basic C++ understanding only
Posted Thu, 06 Dec 2012 08:01:30 GMT by Denim Umeshkumar Anajwala
Hi Blair,

The function to use is 'IfmSetSimulationControlFlag'. Using 'IfmCTL_ABORT' the current operation is immediately aborted (usually not recommended). Normally you'd use 'IFMCTL_BREAK' as the second argument, which will stop the simulation after finishing the current task.

Good luck!
Peter
Posted Thu, 06 Dec 2012 08:36:29 GMT by Blair Thornburrow Groundwater Modeller
Thanks Peter.  I think using IFMCTL_BREAK will achieve the desired result.

You must be signed in to post in this forum.