Page 1 of 1
How to stop the code ?
Posted: Thu Sep 11, 2014 1:37 pm
by pleblanc86
Hello,
I have not found anything on the forum, so I am asking you the question :
How to stop the code when we use the criteria set by the user.
I tried with csexit() function without succes.
Does exists specific function for this ?
Thank you for you help
Regards,
Paul
Re: How to stop the code ?
Posted: Thu Sep 11, 2014 4:24 pm
by Brian Angel
Hello,
Which version of CS are you using and are you using the GUI for running your simulations?
Regards,
Brian Angel.
Re: How to stop the code ?
Posted: Thu Sep 11, 2014 4:30 pm
by Yvan Fournier
Hello,
csexit should work, but it is a "violent" stop (it will kill the postprocessing output, and more).
To stop cleanly (from cs_user_extra_operations.f90), set ntmabs = ntcabs
To stop cleanly from a terminal or script, use the "control_file" (search the user pdf fr details).
Regards,
Yvan
Re: How to stop the code ?
Posted: Thu Sep 11, 2014 7:41 pm
by pleblanc86
Hello,
Thank you for your reply. I think will use the control_file
Thanks you for your help
Regards,
Paul
Re: How to stop the code ?
Posted: Sat Sep 13, 2014 11:23 am
by Jacques Fontaine
It will be more convenient to set ntmabs = ntcabs when your residual is small enough (do this in cs_user_extra_operations.f90).
Regards,