Page 1 of 1

Rank pointer problem using uselrc.f90 CS4.0

Posted: Sat Oct 10, 2015 7:08 am
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

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

Posted: Sun Oct 11, 2015 6:01 pm
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

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

Posted: Mon Oct 12, 2015 9:24 am
by Christophe Loubet
Dear Yvan Fourier,

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

Best regards,

Christophe