|
From: John P. <pet...@cf...> - 2006-11-13 16:16:24
|
Hi Tim,
The mpich linking problem is sometimes caused because the
${PETSC=5FDIR}/bmake/${PETSC=5FARCH}/petscconf
file does not provide the MPI=5FLIB variable correctly or at all. This=
can happen when the mpiCC compiler is used to compile petsc (the
default behavior I think).
If this is the problem, one possible fix is to configure
libmesh using these mpi compilers as well, i.e.
CXX=3DmpiCC CC=3Dmpicc F77=3Dmpif77 ./configure
Conversely, one can force petsc to use the non-mpi compilers
during its configuration process, and then this usually correctly
sets MPI=5FLIB.
-John
Tim Kr=F6ger writes:
> Dear all,
>=20
> The problem is solved already. I added "-lmpich" and=20
> "-L/opt/mpich/ch-p4/lib" to the link line. I still don't understand=
=20
> why this is necessary (in particular, because this directory is=20
> already contained in $LD=5FLIBRARY=5FPATH), but at least it works no=
w.
>=20
> Comments are still welcome, but it's not so urgent any more.
>=20
> Best Regards,
>=20
> Tim
>=20
>=20
|