Rank pointer problem using uselrc.f90 CS4.0

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Christophe Loubet

Rank pointer problem using uselrc.f90 CS4.0

Post by Christophe Loubet »

Dear all,

I get the following error by using uselrc.f90 file with CS4.0:

cs_field.c:987: Erreur fatale
Fortran pointer of rank 2 requested for values of field "curent_re_1", which have rank 1.

It seems that the problem provides from the following call:
call field_get_val_v(iprpfl(idjr(idimve)),djr)

initialized as follows:
double precision, dimension(:,:), pointer :: djr

Could someone help me?
Thanks

Christophe
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Rank pointer problem using uselrc.f90 CS4.0

Post by Yvan Fournier »

Hello,

The example seems to mix scalar and vector data (probably due to a previous try to move to vector representation, which was delayed).

Could you start from the following example instead ? Note this is an example only. Cases in the validation test suite do not use uselrc for rescaling (but mostly the GUI).

Regards,

Yvan
Attachments
uselrc.f90
(13.03 KiB) Downloaded 198 times
Christophe Loubet

Re: Rank pointer problem using uselrc.f90 CS4.0

Post by Christophe Loubet »

Dear Yvan Fourier,

It seems that it works well :D . Thank you really much.

Best regards,

Christophe
Post Reply