Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cd OpenFOAM-v2006/wmake/rules/linux64Cray
cp ../General/mplibCRAY-MPICH .
mv mplibINTELMPI .mplibINTELMPI

Adding the following to Following modifications to wmake/rules/General/mplibMPICH and wmake/rules/linux64Cray/mplibCRAY-MPICH got rid of the erroneous inclusion of -lmpi to the link line.

wmake/rules/General/mplibMPICH:

Code Block
PFLAGS     = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
PINC       = -isystem $(MPI_ARCH_PATH)/include
PLIBS      = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -lmpichcxx -lrt

wmake/rules/lib64Cray/mplibCRAY-MPICH:

Code Block
include $(GENERAL_RULES)/mplibMPICH
PFLAGS     = -DOMPI_SKIP_MPICXX
PINC       = -I$(MPI_ARCH_PATH)/include
PLIBS      =

...