Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronabrams committed Apr 14, 2022
1 parent b60fdf4 commit 8601da8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/prep_namd_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ while [ $i -le $ARGC ] ; do
i=$((i+1))
done

cfgext=`echo $RECONF| awk -F. '{print $NF}'`
REOUTNAME=`echo $RECONF | sed s/".${cfgext}//"`

echo $cfgext $REOUTNAME
exit
if [[ "$quiet" != "0" ]]; then
banner
fi
Expand Down Expand Up @@ -131,9 +136,9 @@ else
stepsleft=$(($stepsleft+$USERADDSTEPS))
echo "stepsleft $stepsleft"
fi
lastout=`grep "set outputname" $CONF | awk '{print $3}' | sed 's/;$//'`
lastout=`grep "set outputname" $CONF | grep -v \# | awk '{print $3}' | sed 's/;$//'`
if [ -z "${lastout}" ]; then
lastout=`grep ^outputname $CONF | awk '{print $2}' | sed 's/;$//'`
lastout=`grep -i ^outputname $CONF | awk '{print $2}' | sed 's/;$//'`
if [ -z "${lastout}" ]; then
echo "Error: $CONF does not contain an outputname specification."
exit 1
Expand Down

0 comments on commit 8601da8

Please sign in to comment.