how to pause a batch mode
Hi
I'm running multiple simulations in batch mode. how can I pause it temporary and continue again for example one hour later? as you know the batch run can't be modified during the run. Regards |
You would need to write a java macro to save and close the simulation after a period of time.
Then you would have to have a shell script which relaunches STAR after a period of time. |
Hi Siavash,
the solution depends on what exactly you want to achieve. You could for example use -server instead of the -batch command line option to run your macros. That way, you could interact with your simulations while they are running, and pause them, without closing down the program. However, you macro would need to be able to close the simulation on its own, when you don't want to do this manually for all your simulations. Read the manual to understand the difference between -batch, -server, (and -macro). Of course, your java macro could have some logic implemented to run (or pause) under certain conditions. See for example, the stop file stopping criterion. It's only satisfied if you have a file present in the specified directory under the specified name. It would be possible that you create a logic in java which would consider similar parameter, wouldn't it? e.g. a pause file. Best regards, Sebastian |
All times are GMT -4. The time now is 05:25. |