-
Notifications
You must be signed in to change notification settings - Fork 1
/
TUTORIAL
80 lines (50 loc) · 1.43 KB
/
TUTORIAL
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh
##
## $Id: TUTORIAL 1.1.1.4 Thu, 04 Apr 2002 11:55:56 +0200 hugo $
##
##############################################################################
##'
##' Purkinje tutorial
##'
##' (C) 1998-2002 BBF-UIA
##'
##' see our site at http://www.bbf.uia.ac.be/ for more information regarding
##' the Purkinje cell and genesis simulation software.
##'
##'
##' functional ideas ... Erik De Schutter, erik@bbf.uia.ac.be
##' genesis coding ..... Hugo Cornelis, hugo@bbf.uia.ac.be
##'
##' general feedback ... Reinoud Maex, Erik De Schutter
##'
##############################################################################
# TUTORIAL : shell script to give transparant initialization and configuration
# if tab files do not exist
if [ ! -f Purk_CaP.tab ]; then
# make config
genesis makeconfig.g
fi
# copy default configuration to current
#cp simulation.defaults simulation.config
# while we should simulate the network
SIMULATE=1
while [ "$SIMULATE" = "1" ]
do
# remove any previous simulation status
rm 2>/dev/null simulation.status
# start the tutorial
genesis TUTORIAL.g
# genesis terminated normally
if [ -f simulation.status ]; then
# check if we should restart simulation
SIMULATE=`cat simulation.status`
else
# end simulation
SIMULATE=0
fi
done
# if simulation status file exists
if [ -f simulation.status ]; then
# remove simulation status file
rm simulation.status
fi