Re: Restart error-Invalid (not a number) values detected for a field
Posted: Fri Jan 21, 2022 2:02 am
Hello,
The fix I suggested and its syntax were for C code. If you use the Fortran variant of the cs_user_parameters file, you need to adapt it. I'll let you check the equivalences in the Doxygen documentation, but is is something like this
Where you need to replace value with the Fortran equivalent of CS_RESTART_AUXILIARY (I'll let you check this).
Regards,
Yvan
The fix I suggested and its syntax were for C code. If you use the Fortran variant of the cs_user_parameters file, you need to adapt it. I'll let you check the equivalences in the Doxygen documentation, but is is something like this
Code: Select all
integer k_id, f_id
call field_get_id("total_pressure", f_id)
call field_get_key_id("restart_file", k_id)
call field_set_key_int(f_id, k_id, value)
Regards,
Yvan