File size: 695 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
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments

# Build if Scotch is enabled and MPI is available
if [ -n "$WM_MPLIB" ] && [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
then
    case $SCOTCH_TYPE in
    none)
        ;;
    *)
        . $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
        . $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch)
        echo "    using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
        wmakeMpiLib scotch_$SCOTCH_VERSION ptscotch
        ;;
    esac
else
    echo "    skipping ptscotch"
fi

#------------------------------------------------------------------------------