Commit 6d252060 authored by Ron Rahaman's avatar Ron Rahaman
Browse files

Removed outdated build/run scripts

parent e25e7e2b
#!/usr/bin/env bash
NEK_CASENAME="$(basename $(pwd))"
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.
# Creating these dirs will suppress that warning
mkdir -p src
mkdir -p include/base
SCH_FILE="$NEK_CASENAME.sch"
if [ -e $SCH_FILE ]; then
echo "Deleting $SCH_FILE..."
rm -f $SCH_FILE
fi
echo "Creating SESSON.NAME..."
echo "$NEK_CASENAME" > SESSION.NAME && pwd >> SESSION.NAME
echo "Building Nek5000 objects..."
$NEK_SOURCE_DIR/core/makenek $NEK_CASENAME $NEK_SOURCE_DIR
echo "Building libNek5000.so..."
make -j $JOBS -f makefile.nek lib
echo "Building MOON driver..."
make -j $JOBS
#!/usr/bin/env bash
# Runs MOON driver for this example directory. Requires the -i <input.i> flag
# for the MOOSE config file
INPUT_FILE=""
while getopts "i:" opt; do
case $opt in
i ) INPUT_FILE=$OPTARG ;;
esac
done
if [ -z "$INPUT_FILE" ]; then
echo "Error: Must provide -i <input_file.i> option"
exit 1;
fi
rm -f *.sch
echo "$(basename $(pwd))" > SESSION.NAME && pwd >> SESSION.NAME
CMD="./$(basename $(pwd))-opt -i $INPUT_FILE"
echo "Running \"$CMD\"..."
eval "$CMD"
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