Commit 75880cd2 authored by Johannes Postma's avatar Johannes Postma
Browse files

script for committing to cluster

parent a995b052
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
#!/bin/bash

# this script creates in an ../Output/ folder for every runXXXX.xml file in the InputFiles Folder
# a seperate folder and submits that file to the cluster to be run
# if you want to exlcude files, rename or remove them from the InputFolder
# if you want to run different maize configurations, add for each a runMaizeXXX.xml folder in the InputFiles. 

pushd ../../../../ > /dev/null
make nopython
pushd > /dev/null
rsync ../../../../nopython_build/OpenSimRoot_noPython OpenSimRoot

list=` find ../../../InputFiles/ -name "run*.xml" -execdir  basename -as .xml {} \;`

cnt=0;
for i in $list ; do
   folder="../Output/$i/"
   echo "Setting up $folder"
#   mkdir -p $folder
#   rsync -a ../../../InputFiles $folder
#   rsync job.sh $folder
   
   pushd $folder > /dev/null
#   rsync "InputFiles/$i.xml" InputFiles/runModel.xml
   qsub -N "$i" job.sh
   pushd  > /dev/null
done