[petsc-users] Bug in ex14f.F90 when debug flags are used?

Danyang Su danyang.su at gmail.com
Fri Jun 5 16:02:59 CDT 2020


Hi All,

 

I have a question regarding the following example. 

https://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/tutorials/ex14f.F90.html

 

 

When debug flags are used in the make file, the code crashed with following error.

 

At line 335 of file ex14f.F90

Fortran runtime error: Index '-14450582413' of dimension 1 of array 'xx' below lower bound of 1

 

FFLAGS           = -g -fcheck=all -fbacktrace -Wall

CPPFLAGS         = -g -fcheck=all -fbacktrace -Wall

 

Does this make sense?

 

Danyang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200605/ef5783a4/attachment.html>


More information about the petsc-users mailing list