[FLASH-USERS] invalid pointer: 0x00000000114f0f30 in Sod problem

Klaus Weide klaus at flash.uchicago.edu
Wed Mar 21 21:00:14 EDT 2018


On Wed, 21 Mar 2018, g.granda at irya.unam.mx wrote:

> I'm tetsing FLASH 4.5 using the provided Sod Problem. I was able to compile
> the problem without problem (using ./setup Sod -site=irya.guido -2d). The

There should usually be an -auto flag on the setup command line.

[...]
> 
> But after running it with ./flash4 flash.par, I got the following error:

Note that 

 ./flash4 flash.par

is not the way to specify a parfile foe a FLASH run. The following should 
work:

 ./flash4 -par_file flash.par

Since 'flash.par' is the default name for the parameter file, it does not 
really matter either way, as long as that is REALLY the name of the file 
you want.


> ------------------------------------------------------------------------------
> 
> I also ran using the debugging flags (./setup Sod -site=irya.guido -2d
> -debug), and I've just got warning messages of unused variables and a success
> at the end. After running I got:
[...]
>  Driver init all done
> Fortran runtime error: Array reference out of bounds for array 'scrch_ptr',
> upper bound of dimension 2 exceeded (in file 'hy_uhd_getFaceFlux.F90', at line
> 584)

The code statement beginning on line 584 should be:

                       scrch_Ptr(HY_VAR2_SCRATCHCTR_VAR,i,j,k) = &
                            0.5*( scrchFaceXPtr(HY_N05_FACEXPTR_VAR,i,j,k) &
                                 +scrchFaceXPtr(HY_P05_FACEXPTR_VAR,i,j,k))

it is not clear to me under what circumstances the variable i could exceed 
the 'upper bound of dimension 2'.

> - gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)
> - GNU Fortran (GCC) 4.1.2

I notice that your compiler version is by now rather old - it is 
older than versions for which we do regular testing. Could you try 
with a newer version of GFortran?

Klaus



More information about the flash-users mailing list