[petsc-users] Question on DMDA in example ex11f90

Satish Balay balay at mcs.anl.gov
Wed Oct 19 07:00:55 CDT 2011


Hm - perhaps this is an issue with gfortran 4.2 [we've seen some f90
issues with it]. My run with gfortran-4.6 [on linux does not give any
errors.

Will see if I can find gfortran 4.2 to reproduce..

Satish


On Wed, 19 Oct 2011, Wienand Drenth wrote:

> Hello,
> 
> Following suggestions on a previous query on handling distributed arrays, I
> set forth to use the DMDA path.
> 
> I installed the latest petsc version (3.2 patch 3), and went looking into
> example 11f90 (in src/dm/examples/tutorials) for inspiration.
> 
> Compilation of the example went ok, but when I run the example I get an
> error:
> 
> 12:25] examples/tutorials 81 > mpiexec -n 1 ex11f90
> Vector Object:Vec_0x80b3bb8_0 1 MPI processes
>   type: mpi
> Process [0]
> *** glibc detected *** ex11f90: free(): invalid pointer: 0x080b6630 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0xb6f438c4]
> /lib/libc.so.6(cfree+0x90)[0xb6f47370]
> /home/wdrenth/software/petsc-3.2-p3/linux-gnu/lib/libpetsc.so(PetscFreeAlign+0x1b)[0xb777f5b1]
> /home/wdrenth/software/petsc-3.2-p3/linux-gnu/lib/libpetsc.so(VecDestroy_Seq+0x6a)[0xb7616e60]
> 1
> 2
> 3
> 4
> 0
> /home/wdrenth/software/petsc-3.2-p3/linux-gnu/lib/libpetsc.so(VecDestroy+0x51)[0xb7976a11]
> /home/wdrenth/software/petsc-3.2-p3/linux-gnu/lib/libpetsc.so(DMClearGlobalVectors+0x6c)[0xb7666064]
> /home/wdrenth/software/petsc-3.2-p3/linux-gnu/lib/libpetsc.so(DMDestroy+0x233)[0xb76917d8]
> /home/wdrenth/software/petsc-3.2-p3/linux-gnu/lib/libpetsc.so(dmdestroy_+0x1b)[0xb7692b5a]
> ex11f90(MAIN__+0x172)[0x8049086]
> ex11f90(main+0x27)[0x8049967]
> /lib/libc.so.6(__libc_start_main+0xe0)[0xb6eee390]
> ex11f90[0x8048eb1]
> 
> 
> Petsc was installed with the following config options:
> 
> --PETSC_ARCH=${PETSC_ARCH} --with-mpi-dir=${MPI_DIR}
> --download-f-blas-lapack=1 --with-shared-libraries=1 --with-debugging=no
> --download-mumps=1 --with-mumps=1 --with-fortran-interfaces
> --download-scalapack=1 --with-scalapack=1 --download-blacs=1 --with-blacs=1
> --download-parmetis=1 --download-hypre=1
> 
> PETSC_ARCH is linux-gnu, and I have a locally installed MPI version, with
> MPI_DIR being the location. I use the openmpi 1.4.3 version of MPI.
> 
> Thank for any support and help,
> 
> kind regards,
> Wienand
> 
> 



More information about the petsc-users mailing list