|
[Sponsors] |
July 26, 2005, 20:36 |
I want to stop the program aft
|
#1 |
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17 |
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.
__________________
Xiaofeng Liu, Ph.D., P.E., Assistant Professor Department of Civil and Environmental Engineering Penn State University 223B Sackett Building University Park, PA 16802 Web: http://water.engr.psu.edu/liu/ |
|
July 27, 2005, 06:19 |
1) dump frequently enough. You
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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. |
|
July 27, 2005, 07:01 |
You will of course need to est
|
#3 |
Senior Member
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17 |
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.
Gavin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Timestep control via CEL? | Claudia | CFX | 7 | September 14, 2007 06:00 |
Solver Control | Anantha | CFX | 1 | September 4, 2007 14:30 |
Running in patch when your license is running out | Andrew | CFX | 2 | August 9, 2007 14:48 |
Diffusion control | Julie | Siemens | 4 | February 19, 2002 08:54 |
control plotting in fortran program | zhe zhang | Main CFD Forum | 2 | November 16, 1999 14:10 |