mac.sh 881 Bytes
Newer Older
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/bash
#$ -S /bin/bash
#$ -m bea
# . /local/env/envpython-2.7.sh
# export PYTHONPATH=~/cadbiom/:~/cadbiom/solver/

# model info
model_folder="bio_models/"
model_name="mini_test_publi"
model_ext=".bcx"
model="$model_folder$model_name$model_ext"

# results info
result_folder="result/"
p_ext="_P"
result_ext="_cam.txt"
step_ext="_cam_step.txt"
complete_ext="_cam_complete.txt"

# Delete previous results
camF="$result_folder$model_name$p_ext$result_ext"
if [ -f $camF ]
then
   rm $camF
fi
stepF="$result_folder$model_name$p_ext$step_ext"
if [ -f $stepF ]
then
   rm $stepF
fi
completeF="$result_folder$model_name$p_ext$complete_ext"
if [ -f $completeF ]
then
   rm $completeF
fi

# Parameters
inv_p="n"
start_p="n"
p="P"
step="10"

# MAC research
tt=0
while [ $tt -eq 0 ];
do
	python "script_mac.py" $model $camF "$inv_p" "$start_p" "$p" $step
	tt=$?
	echo $tt
	echo ""
done