Undefined variable irangp in Neptune V3

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Louis
Posts: 2
Joined: Sat Jul 06, 2019 4:29 pm

Undefined variable irangp in Neptune V3

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

Re: Undefined variable irangp in Neptune V3

Post 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
Louis
Posts: 2
Joined: Sat Jul 06, 2019 4:29 pm

Re: Undefined variable irangp in Neptune V3

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