Page 1 of 1

propfa, ipprof and ifluma in version 5.0

Posted: Thu Feb 21, 2019 8:24 pm
by Mohammad
Hi,
I have a version 3.0 code and I want to make it usable in version 5.0.

one of the lines is:

Code: Select all

flux = flux + propfa(ifac,ipprof(ifluma(iu)))
But the compiler does not detect propfa, ipprof and ifluma.

I changed it to:

Code: Select all

field_get_key_int(ivarfl(iu), kbmasf, ifac)
is that correct? If not, how can I use these functions in ver. 5.0?

Re: propfa, ipprof and ifluma in version 5.0

Posted: Fri Feb 22, 2019 12:46 am
by Yvan Fournier
Hello,

Actually, you need something similar to:

Code: Select all

field_get_key_int(ivarfl(iu), kbmasf, f_id)
field_get_val_s(f_id, mass_flux)
The following Doxygen page for version 5.0 describes the main naming conventions:
https://www.code-saturne.org/cms/sites/ ... _dico.html

To help conversion, I just added the version 4.0 Doxygen documentation, which has a page describing the exact mappings from v3.0 to 4.0 (that page was simplified in the v5 documentation assuming users had already migrated to at least version 3.0).

Best regards,

Yvan