From 39ff57c7adf4fb04fffa2f3093aaa5fafdddaa74 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Thu, 11 Sep 2014 15:43:16 +0000 Subject: [PATCH] started with trisurf scripts --- bin/trisurf-deploy | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/bin/trisurf-deploy b/bin/trisurf-deploy new file mode 100755 index 0000000..3bd3b15 --- /dev/null +++ b/bin/trisurf-deploy @@ -0,0 +1,46 @@ +#!/bin/bash + +#This part is a configuration part of trisurf deploy + + +#definition of tapes +declare -a tapes=("tape1" "tape2" "tape3" "tape4"); + +#what options from tape should be overriden +declare -a tape_overrides=("xk0=10" "constvol=2,xk=20" "" ""); + +#some extra options for program execution +declare -a extra_options=("--force-from-tape" "--reset-iteration-count" "" ""); + +#main directory +declare directory="/home/samo/trisurfanje" + +#subdirectory structure +function subdir() { + + exit 0; +} + + +#End of configuration + +declare tape_no=${#tapes[@]} +for i in `seq 1 $tape_no`; do + echo "trisurf -t ${tapes[i-1]} -d $directory/subdir($i) -o ${tape_overrides[i-1]} ${extra_options[i-1]}" +done; + + +#Functions required for operation + + + + + + + + +echo "Deploying configuration of trisurf" + + + + -- Gitblit v1.9.3