[petsc-users] hypre
Satish Balay
balay at mcs.anl.gov
Tue Mar 22 17:09:12 CDT 2011
On Tue, 22 Mar 2011, Verena Kuhlemann wrote:
> Thanks for the answer.
>
> On Mar 22, 2011, at 12:02 PM, Satish Balay wrote:
>
> > Which version of PETSc are you using? The URL for hypre is listed in
> > config/PETSc/packages/hypre.py - for any given version of petsc.
> >
>
> This file does not exist in my version. Do you know what might have gone
> wrong?
You have corrupted PETSc sources. Suggest starting with a fresh
tarball. [you might aswell start off with petsc-3.1-p8]
>
>
> > for petsc-3.1 its:
> > http://ftp.mcs.anl.gov/pub/petsc/externalpackages/hypre-2.6.0b.tar.gz
> >
>
> I am using Petsc-3.1, so I used the hypre version you suggested.
> When I try to compile one of my programs, here is what I get:
>
> mpicc -o defaultras2_hypre.o -c -g
> -I/home/vkuhlem/research/petsc-3.1-p4/withhypre/include
> -I/home/vkuhlem/research/petsc-3.1-p4/include
> -I/home/vkuhlem/research/petsc-3.1-p4/withhypre/include
> -I/home/vkuhlem/research/ParMetis-3.1.1/include -D__INSDIR__=
> defaultras2_hypre.c
> mpicc -g -o defaultras2_hypre defaultras2_hypre.o
> -Wl,-rpath,/home/vkuhlem/research/petsc-3.1-p4/withhypre/lib
> -L/home/vkuhlem/research/petsc-3.1-p4/withhypre/lib -lpetsc -lX11
> -Wl,-rpath,/home/vkuhlem/research/petsc-3.1-p4/withhypre/lib
> -L/home/vkuhlem/research/petsc-3.1-p4/withhypre/lib -lHYPRE -lmv -lmpath
> -lstdc++ -Wl,-rpath,/home/vkuhlem/research/ParMetis-3.1.1/lib
> -L/home/vkuhlem/research/ParMetis-3.1.1/lib -lparmetis -lmetis -lflapack
> -lfblas -L/opt/pathscale/lib/3.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -ldl
> -lmpich -lpscrt -lgcc_s -lmpichf90 -lmpichabiglue_psc -lpathfstart
> -lpathfortran -lmv -lmpath -lm -lm -lm -lm -lmv -lmpath -lstdc++ -lmv -lmpath
> -lstdc++ -ldl -lmpich -lpscrt -lgcc_s -ldl
> /home/vkuhlem/research/petsc-3.1-p4/withhypre/lib/libpetsc.a(mhyp.o): In
> function `MatZeroEntries_HYPREStruct_3d':
> /home/vkuhlem/research/petsc-3.1-p4/src/dm/da/utils/mhyp.c:397: undefined
> reference to `hypre_StructMatrixClearBoxValues'
> collect2: ld returned 1 exit status
> make: [defaultras2_hypre] Error 1 (ignored)
> /bin/rm -f defaultras2_hypre.o
>
>
> Did I configure Petsc wrong? I attached the configure.log.
configure.log is too big to be flooded on the mailing list. For such issues
requring configure.log - please use petsc-maint at mcs.anl.gov
Satish
More information about the petsc-users
mailing list