How to stop the code ?

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
pleblanc86
Posts: 22
Joined: Wed Dec 11, 2013 6:15 pm

How to stop the code ?

Post 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
Brian Angel

Re: How to stop the code ?

Post by Brian Angel »

Hello,

Which version of CS are you using and are you using the GUI for running your simulations?

Regards,

Brian Angel.
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: How to stop the code ?

Post 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
pleblanc86
Posts: 22
Joined: Wed Dec 11, 2013 6:15 pm

Re: How to stop the code ?

Post by pleblanc86 »

Hello,

Thank you for your reply. I think will use the control_file

Thanks you for your help
Regards,
Paul
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: How to stop the code ?

Post 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,
Post Reply