propfa, ipprof and ifluma in version 5.0

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Mohammad
Posts: 114
Joined: Thu Oct 25, 2018 12:18 pm

propfa, ipprof and ifluma in version 5.0

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

Re: propfa, ipprof and ifluma in version 5.0

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