diff --git a/src/parallel/decompose/Allwclean b/src/parallel/decompose/Allwclean index 897eed71b722610cc6d8d6b788f85c8ff98d7763..62e2d2969853d6aa3bcd7d30fac6901d243ef3cb 100755 --- a/src/parallel/decompose/Allwclean +++ b/src/parallel/decompose/Allwclean @@ -1,9 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -# Parse arguments for library compilation -. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments - # get SCOTCH_VERSION, SCOTCH_ARCH_PATH if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch` then @@ -28,7 +25,7 @@ wcleanMpiLib() WM_OPTIONS="$WM_OPTIONS$WM_MPLIB" whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI" whichscotch="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$SCOTCH_VERSION" - wclean $targetType $libName + wclean $libName ) done set -x diff --git a/src/parallel/decompose/ptscotchDecomp/Make/options b/src/parallel/decompose/ptscotchDecomp/Make/options index 25ca6e9d02836f23b6bcc1a4340a2c80f16b7e14..cb407ec6b5c8646d634e0d4bc169a3e40c4946b5 100644 --- a/src/parallel/decompose/ptscotchDecomp/Make/options +++ b/src/parallel/decompose/ptscotchDecomp/Make/options @@ -3,10 +3,15 @@ sinclude $(RULES)/mplib$(WM_MPLIB) EXE_INC = \ $(PFLAGS) $(PINC) \ - -I$(SCOTCH_ROOT)/include \ -I$(SCOTCH_ARCH_PATH)/include/$(FOAM_MPI) \ + -I$(SCOTCH_ARCH_PATH)/include \ -I/usr/include/scotch \ -I../decompositionMethods/lnInclude LIB_LIBS = \ - -L$(SCOTCH_ROOT)/lib -L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) -lptscotch -lptscotcherrexit -lscotch ${LINK_FLAGS} -lrt + -L$(SCOTCH_ARCH_PATH)/lib \ + -L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) \ + -lptscotch \ + -lptscotcherrexit \ + -lscotch \ + -lrt diff --git a/src/parallel/decompose/scotchDecomp/Make/options b/src/parallel/decompose/scotchDecomp/Make/options index 3bb11fba5ceada224270469fee5b19db0901a8a4..d2cc770692ce384821691c05ef08cd3d47e9a9a5 100644 --- a/src/parallel/decompose/scotchDecomp/Make/options +++ b/src/parallel/decompose/scotchDecomp/Make/options @@ -7,10 +7,13 @@ sinclude $(RULES)/mplib$(WM_MPLIB) EXE_INC = \ $(PFLAGS) $(PINC) \ - -I$(SCOTCH_ROOT)/include \ -I$(SCOTCH_ARCH_PATH)/include \ -I/usr/include/scotch \ -I../decompositionMethods/lnInclude LIB_LIBS = \ - -L$(SCOTCH_ROOT)/lib -L$(FOAM_EXT_LIBBIN) -lscotch -lscotcherrexit -lrt + -L$(SCOTCH_ARCH_PATH)/lib \ + -L$(FOAM_EXT_LIBBIN) \ + -lscotch \ + -lscotcherrexit \ + -lrt