Commit 75c26a1f authored by Ron Rahaman's avatar Ron Rahaman

Added -j option to build_coupled_nek.sh

parent b1c17da8
#k!/usr/bin/env bash #k!/usr/bin/env bash
NEK_CASENAME="$(basename $(pwd))" NEK_CASENAME="$(basename $(pwd))"
NEK_SOURCE_DIR="$(dirname $(dirname $(pwd)))/Nek5000" NEK_SOURCE_DIR="$(dirname $(dirname $(pwd)))/Nek5000"
JOBS=4
while getopts ":j:" opt; do
case $opt in
j ) JOBS=$OPTARG ;;
esac
done
# MOOSE issues a warning if these directories do not exist. # MOOSE issues a warning if these directories do not exist.
# Creating these dirs will suppress that warning # Creating these dirs will suppress that warning
mkdir -p src mkdir -p src
...@@ -20,7 +28,7 @@ echo "Building Nek5000 objects..." ...@@ -20,7 +28,7 @@ echo "Building Nek5000 objects..."
$NEK_SOURCE_DIR/core/makenek $NEK_CASENAME $NEK_SOURCE_DIR $NEK_SOURCE_DIR/core/makenek $NEK_CASENAME $NEK_SOURCE_DIR
echo "Building libNek5000.a..." echo "Building libNek5000.a..."
make -f makefile.nek lib make -j $JOBS -f makefile.nek lib
echo "Building MOON driver..." echo "Building MOON driver..."
make make -j $JOBS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment