Commit a46c7e70 authored by Ron Rahaman's avatar Ron Rahaman

moved build & run scripts to scripts/ folder

parent f0676cc6
#k!/usr/bin/env bash
NEK_CASENAME="$(basename $(pwd))"
NEK_SOURCE_DIR="$(dirname $(dirname $(pwd)))/Nek5000"
# 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.a..."
make -f makefile.nek lib
echo "Building MOON driver..."
make
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