Page 1 of 1

Run time error when compressible switch is turned off

Posted: Thu Aug 04, 2016 12:59 am
by Oscar
Hello,

I am running a compressible simulation and it runs fine. However oddly enough if I turn off the compressible option inside cs_user_parameters.f90:

Code: Select all

   ippmod(icompf) = -1 
then I get the following error during the beginning of run time:

Code: Select all

 ../../../../code_saturne-4.0_R8950/src/base/cs_field.c:987: Fatal error.
 
Fortran pointer of rank 1 requested for values of field "velocity",
which have rank 2.
I had a read through this related post http://code-saturne.org/forum/viewtopic.php?f=2&t=1891 So I understand somewhere I might be mixing up scalars with vectors. But then why does it only happen when the compressible switch is turned off? I have attached my subroutines for reference.

I would also like to understand how I may debug an error like this- where do I start to look because it could be in any of my files - all I know is that its pointing to cs_field.c:987 but I have no idea where that is referring to/where it comes from. Sorry if this is a bit basic I am new to C and code_saturne. Many thanks for your help.

Re: Run time error when compressible switch is turned off

Posted: Thu Aug 04, 2016 4:28 pm
by Yvan Fournier
Hello,

What does the rest of your backtrace say ? This would help to see where the error occurs.
You posted some user subroutines, but mention another, so I'm not sure here.
Could you post all your user subroutines and your XML file ?

Regards,

Yvan

Re: Run time error when compressible switch is turned off

Posted: Wed Aug 31, 2016 6:13 pm
by Oscar
Hi Yvan,

I am sorry for the late reply - but for some reason I don't get email notifications of a reply from the forum!

This problem is not an issue for me anymore, per se rather I think I am now having issues with the fact that the CS version i am using is conflicting, but I will post a separate question for that. However in the interest of someone else wanting an answer I will post the requested files below!