From: Roy S. <roy...@ic...> - 2007-07-26 14:25:56
|
On Thu, 26 Jul 2007, Tim Kröger wrote: > It seems as if libmesh-config fails to include the options required to > link with MUMPS. I suppose so... it looks like we hardcode the relevant PETSc library link options in aclocal.m4; anyone know if there is any standard PETSc file (if such a phrase isn't an oxymoron) where we could be snooping them instead? > If I add the options > > -L$(PETSC_DIR)/externalpackages/MUMPS_4.7.3/$(PETSC_ARCH)/lib -lcmumps -ldmumps -lpord -lsmumps -lzmumps > > manually to the command line, however, I get > > /home/tim/archives/packages/petsc-2.3.3-p3/externalpackages/MUMPS_4.7.3/linux-gnu/lib/libdmumps.a(dmumps_part3.o): In function `dmumps_210_': > /home/tim/archives/packages/petsc-2.3.3-p3/externalpackages/MUMPS_4.7.3/src/dmumps_part3.F:139: undefined reference to `_gfortran_allocate_array' Have you tried adding -lgfortran after -lzmumps? The GCC C++ linker won't include fortran standard libraries unless you tell it to explicitly. --- Roy |