Restart Calcul -> Problem of value in propoce variable

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

Restart Calcul -> Problem of value in propoce variable

Post 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
Yvan Fournier
Posts: 4152
Joined: Mon Feb 20, 2012 3:25 pm

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

Post 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
Xepls
Posts: 10
Joined: Sun Dec 03, 2017 3:24 pm

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

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

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

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