Run time error when compressible switch is turned off
Posted: Thu Aug 04, 2016 12:59 am
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: then I get the following error during the beginning of run time:
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.
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
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 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.