Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nek5000
giraffe
Commits
6e082d87
Commit
6e082d87
authored
Oct 19, 2016
by
Ron Rahaman
Browse files
Added run script for MOON problems
parent
1a3f6583
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/template_example/run_coupled_nek.sh
0 → 100755
View file @
6e082d87
#!/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
CMD
=
"./
$(
basename
$(
pwd
))
-opt -i
$INPUT_FILE
"
echo
"Running
\"
$CMD
\"
..."
eval
"
$CMD
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment