Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
#! /bin/sh #! /bin/sh
echo "New project to be started with name $1" echo "New project to be started in folder $1"
echo "Copying jb file, py file, and rc-file" echo " ...........with name $2"
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
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 ****************" echo "************* NOW USE ****************"
ls -lrta $1.* ls -lrta $2.*
echo "**************************************" echo "**************************************"
echo "after cd ${rundir}"
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
echo ######################## echo ########################
module load tm5/mpi module load intel/latest/tm5
module load ctdas module load python/2.6
python template.py rc=template.rc $1 /opt/local/bin/python template.py rc=template.rc $1 >& template.log &
...@@ -5,7 +5,7 @@ time.start : 2005-01-01 00:00:00 ...@@ -5,7 +5,7 @@ time.start : 2005-01-01 00:00:00
time.finish : 2011-01-01 00:00:00 time.finish : 2011-01-01 00:00:00
time.cycle : 10 time.cycle : 10
time.nlag : 3 time.nlag : 3
dir.da_run : /archive/peters/template dir.da_run : templaterundir
! Info on the DA system used ! Info on the DA system used
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment