ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / src / parallel / decompose / Allwmake
blobb620b27791e388a86f88b3b59474cc60769a7cf4
1 #!/bin/sh
2 cd ${0%/*} || exit 1 # run from this directory
3 makeType=${1:-libso}
5 # get SCOTCH_VERSION, SCOTCH_ARCH_PATH
6 if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config/scotch.sh`
7 then
8 . $settings
9 echo "using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
10 else
11 echo
12 echo "Error: no config/scotch.sh settings"
13 echo
18 # define how to create an mpi-versioned library of $makeType
19 # compile into qualified directory
20 # use sentinel file to handle version changes
22 wmakeMpiLib()
24 set +x
25 for libName
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"
36 done
37 set -x
40 set -x
42 wmakeLnInclude decompositionMethods
44 if [ -n "$SCOTCH_ARCH_PATH" ]
45 then
46 wmake $makeType scotchDecomp
47 [ -d "$FOAM_LIBBIN/$FOAM_MPI" ] && wmakeMpiLib ptscotchDecomp
48 else
49 echo
50 echo "Skipping scotchDecomp (ptscotchDecomp)"
51 echo
54 wmake $makeType decompositionMethods
56 # ----------------------------------------------------------------- end-of-file