Run time error when compressible switch is turned off

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Oscar
Posts: 25
Joined: Tue Aug 02, 2016 11:38 pm

Run time error when compressible switch is turned off

Post 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.
Attachments
cs_user_initialization.f90
(6.08 KiB) Downloaded 203 times
cs_user_boundary_conditions.f90
(24.62 KiB) Downloaded 235 times
cs_user_modules.f90
(3.02 KiB) Downloaded 202 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Run time error when compressible switch is turned off

Post 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
Oscar
Posts: 25
Joined: Tue Aug 02, 2016 11:38 pm

Re: Run time error when compressible switch is turned off

Post 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!
Attachments
notworking.zip
(3.92 MiB) Downloaded 209 times
Post Reply