File: runit

package info (click to toggle)
openmolcas 25.02-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 170,204 kB
  • sloc: f90: 498,088; fortran: 139,779; python: 13,587; ansic: 5,745; sh: 745; javascript: 660; pascal: 460; perl: 325; makefile: 17
file content (28 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

VERSION="7.9"
echo "runit  $VERSION" | sed -e 's/\$//g' | sed -e 's/: /  /g'

if [ -z "$1" ]; then
 echo "usage:  ./runit <Project name> "
 exit
fi
MPROJ=`echo $1| sed -e 's/\.input$//'`
echo "Project name=" $MPROJ
echo "creating temporary directory " `pwd` "/CTMP"
CURRDIR=`pwd`
CTMP=`pwd`/CTMP
export WorkDir=$CTMP/WORK
export ThisDir=$CTMP
export Project=$MPROJ
 if [ -d $CTMP ];
  then
  rm -rf $CTMP
  fi
 mkdir $CTMP
 cd $CTMP
 cp ../$Project.input .
 molcas $Project.input
 cd $CURRDIR