Fix plot script for com=... syntax

This commit is contained in:
2020-02-04 15:21:07 +01:00
parent f5cce3ca2e
commit a224ff91da

24
plot
View File

@@ -2,19 +2,19 @@
PLOT_NAME=`git describe --tags --long`
# if the first argument is an runtpe file, use different plot command
if [[ $1==runs/* ]]; then
mcnp6 p runtpe=$1 \
outp=tmp/plota.out comout=tmp/plota.com \
wwout=tmp/plota.wwg wwone=tmp/plota.wwo \
wwinp=weight_windows/current.wwg \
plotm=results/e2-estia_$PLOT_NAME ${@:2}
if [[ $1 == runs/* ]]; then
mcnp6 p runtpe=$1 \
outp=tmp/plota.out comout=tmp/plota.com \
wwout=tmp/plota.wwg wwone=tmp/plota.wwo \
wwinp=weight_windows/current.wwg \
plotm=results/e2-estia_$PLOT_NAME ${@:2}
else
mcnp6 ip inp=e2-estia.i \
outp=tmp/plota.out comout=tmp/plota.com \
wwout=tmp/plota.wwg wwone=tmp/plota.wwo \
mctal=tmp/plota.mct mdata=tmp/plota.mdt \
wwinp=weight_windows/current.wwg \
plotm=results/e2-estia_$PLOT_NAME $@
mcnp6 ip inp=e2-estia.i \
outp=tmp/plota.out comout=tmp/plota.com \
wwout=tmp/plota.wwg wwone=tmp/plota.wwo \
mctal=tmp/plota.mct mdata=tmp/plota.mdt \
wwinp=weight_windows/current.wwg \
plotm=results/e2-estia_$PLOT_NAME $@
fi
if [ -f results/e2-estia_$PLOT_NAME.ps ]; then