I want to stop the program aft
I want to stop the program after its running for a period of time, say 10 hours. Is there a method to let it stop "normally".
This question rises because the supercomputers in our university has a system which run jobs according to the time and processors demand. Some time my job is killed before it is finished because my time slot is used up and the worst thing is the results are not saved. What I want to do is to save the results and quit the program just before killing happends.
1) dump frequently enough. You
1) dump frequently enough. You can specify to dump every so often. Check out the options on writeControl in the controlDict.
2) the new purgeWrite allows you to keep only say the last few dumps. So now you can dump very frequently and not fill up your disk.
3) if you are interested in stopping at exactly 10 hours you could try to use the foamEndJob script and schedule it to be started at exactly 10 hours. It will modify the controlDict to do a 'writeNow' end. I haven't looked at this script for a while so it might be out of date.
I think option 2 should be most effective.
You will of course need to est
You will of course need to estimate how long a time it will take to actually write the data to disk; otherwise you could find that the code is being killed halfway through the write operation.
|All times are GMT -4. The time now is 02:59.|