File size: 776 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
# Define how to create an mpi-versioned library of $targetType
# compile into qualified directory
# use sentinel file to handle version changes
wmakeMpiLib()
{
for libName
do
(
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/Pstream/$libName/using:$FOAM_MPI"
[ -e "$whichmpi" ] || wclean $libName
wmake $targetType $libName
touch "$whichmpi"
)
done
}
wmake $targetType dummy
case "$WM_MPLIB" in
*MPI*)
wmakeMpiLib mpi
;;
esac
#------------------------------------------------------------------------------
|