Page 1 of 1

Undefined variable irangp in Neptune V3

Posted: Sat Jul 06, 2019 7:08 pm
by Louis
Dear All

I would like to use the variable irangp (indicating number of processors) in a Neptune V3 subroutine. However, I get the following message:

/src_neptune/nc_user_initialization.c(122): error: identifier "irangp" is undefined

It might be that irangp is differently named in the Neptune code or otherwise I need a special include file?

irangp used in fortran user files - I am looking for the c user file variable.

Your help will be appreciated.

Thanks,
Louis

Re: Undefined variable irangp in Neptune V3

Posted: Sun Jul 07, 2019 10:35 pm
by Yvan Fournier
Hello,

The same C name is used in both Code_Saturne and NEPTUNE_CFD. The C equivalent of irangp (Fortran) is "cs_glob_rank_id". You should find it in quite a few user examples.

Regards,

Yvan

Re: Undefined variable irangp in Neptune V3

Posted: Mon Jul 08, 2019 8:09 pm
by Louis
Hi Yvan

Thank you very much!

I also got another answer today to the question namely to use nc_par.irangp for C using Neptune V3.2.

Much appreciated!
Louis