2 cd ${0%/*} ||
exit 1 # run from this directory
5 # get SCOTCH_VERSION, SCOTCH_ARCH_PATH
6 if settings
=`$WM_PROJECT_DIR/bin/foamEtcFile config/scotch.sh`
9 echo "using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
12 echo "Error: no config/scotch.sh settings"
18 # define how to create an mpi-versioned library of $makeType
19 # compile into qualified directory
20 # use sentinel file to handle version changes
28 WM_OPTIONS
="$WM_OPTIONS$WM_MPLIB"
29 whichmpi
="$libName/Make/$WM_OPTIONS/using:$FOAM_MPI"
30 whichscotch
="$libName/Make/$WM_OPTIONS/using:$SCOTCH_VERSION"
31 [ -e "$whichmpi" -a -e "$whichscotch" ] || wclean
$libName
32 echo "wmake $makeType $libName"
33 wmake
$makeType $libName
34 touch "$whichmpi" "$whichscotch"
42 wmakeLnInclude decompositionMethods
44 if [ -n "$SCOTCH_ARCH_PATH" ]
46 wmake
$makeType scotchDecomp
47 [ -d "$FOAM_LIBBIN/$FOAM_MPI" ] && wmakeMpiLib ptscotchDecomp
50 echo "Skipping scotchDecomp (ptscotchDecomp)"
54 wmake
$makeType decompositionMethods
56 # ----------------------------------------------------------------- end-of-file