Commit 91b6ae63 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

the start_ctdas script now makes a new folder and first copies all python files to it

parent eafae19b
#! /bin/sh
echo "New project to be started with name $1"
echo "Copying jb file, py file, and rc-file"
sed -e "s/template/$1/g" template.jb > $1.jb
sed -e "s/template/$1/g" template.py > $1.py
sed -e "s/template/$1/g" template.rc > $1.rc
echo "New project to be started in folder $1"
echo " ...........with name $2"
chmod u+x $1.jb
rootdir=$1/$2
rundir=$1/$2/exec
mkdir -p ${rundir}
rsync -auvz * ${rundir}/
cd ${rundir}
echo "Creating jb file, py file, and rc-file"
sed -e "s/template/$2/g" template.jb > $2.jb
sed -e "s/template/$2/g" template.py > $2.py
sed -e "s/template/$2/g" template.rc > $2.rc
chmod u+x $2.jb
echo "************* NOW USE ****************"
ls -lrta $1.*
ls -lrta $2.*
echo "**************************************"
echo "after cd ${rundir}"
......@@ -10,6 +10,6 @@
echo ########################
module load tm5/mpi
module load ctdas
python template.py rc=template.rc $1
module load intel/latest/tm5
module load python/2.6
/opt/local/bin/python template.py rc=template.rc $1 >& template.log &
......@@ -5,7 +5,7 @@ time.start : 2005-01-01 00:00:00
time.finish : 2011-01-01 00:00:00
time.cycle : 10
time.nlag : 3
dir.da_run : /archive/peters/template
dir.da_run : templaterundir
! Info on the DA system used
......
Supports Markdown
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