Page 1 of 1

Restart Calcul -> Problem of value in propoce variable

Posted: Wed Jan 10, 2018 3:15 pm
by pleblanc86
Hello everbody,

I am writing to you because I have a problem :

- When I restart a calcul from the checkpoint, all values of scalars are kept but the values in the propce table (e.g propce(icell,ipproc(idpl) -> declare by me in the pprt directory and elec) does not kept. So my question is :

What option sould I active to keep the value in the propce table when I restart my calcul from the checkpoint ?

Last question :

Is it possible to change the dtref value during the computation.

NB : I work with the version 3.2

Looking forward your reply
Best regards

Paul

Re: Restart Calcul -> Problem of value in propoce variable

Posted: Fri Jan 12, 2018 10:46 pm
by Yvan Fournier
Hello,

Some specific properties are saved in checkpoint files, but most are not (only solved variables are systematically saved).

A solution would be to open a separate checkpoint file using the cs_restart_* functions or associated Fortran wrappers. I could point to Doxygen documentation elements helping you do do this in versions 5.x, but I don't really remember what was documented in version 3.2 (but you can mostly check the cs_restart.h sources). You can also check how the checkpoint restart of properties is done in src/base/ecrava.f90, lecamo.f90, and lecamx.f90.

Best regards,

Yvan

Re: Restart Calcul -> Problem of value in propoce variable

Posted: Sun Jan 14, 2018 2:56 am
by Xepls
Hi!

I am not sure, but en user subroutine cs_user_parameters.f90 you can to change your dtref. If you do want this change over time, user parameter "ttcabs" (time physics) and use conditions and expressions to your manner.

Xepls

Re: Restart Calcul -> Problem of value in propoce variable

Posted: Wed Jan 31, 2018 3:41 pm
by pleblanc86
Hi,

Sorry for this too late reply. Thank you Yvan for your precisions. I have modified ecrava.f90 and lecamx.f90 files and now I can restart my case from the checkpoint.

One last question : Is it possible to set in Code-Saturne a minimal number of iteration for the solver. (the max is 10000 but the min is always 1?)

Thank you again

Paul