File: banocur.mod

package info (click to toggle)
neuron 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,760 kB
  • sloc: cpp: 149,571; python: 58,465; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (83 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (3)
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
79
80
81
82
83
: test of BEFORE and AFTER with no current computation

NEURON {
  SUFFIX ba0
  RANGE bi, i, ai, bb, b, pval, as, bs
  RANGE bit, it, ait, bbt, bt, pvalt, ast, bst
}

ASSIGNED {
  inc
  : Mostly, first letter stands for BEFORE, AFTER.
  : second letter stands for INITIAL, BREAKPOINT, SOLVE
  : last t is for time and if absent, then the value of inc.
  : All but BEFORE INITIAL increments inc
  bi i ai bb b pval as bs
  bit it ait bbt bt pvalt ast bst
}

PROCEDURE init() {
  LOCAL m
  m = -1
  inc=m
  bi=m i=m ai=m bb=m b=m pval=m as=m bs=m  
  bit=m it=m ait=m bbt=m bt=m pvalt=m ast=m bst=m
}

BEFORE INITIAL {
  init()
  inc = 0
  bi = inc
  bit = t
  printf("ba0 BEFORE INITIAL inc=%g t=%g\n", inc, t)
}

INITIAL {
  inc = inc + 1
  i = inc
  it = t
  printf("ba0 INITIAL inc=%g t=%g\n", inc, t)
}

AFTER INITIAL {
  inc = inc + 1
  ai = inc
  ait = t
  printf("ba0 AFTER INITIAL inc=%g t=%g\n", inc, t)
}

BEFORE BREAKPOINT {
  inc = inc + 1
  bb = inc
  bbt = t
  printf("ba0 BEFORE BREAKPOINT inc=%g t=%g\n", inc, t)
}

BREAKPOINT {
  inc = inc + 1
  b = inc
  bt = t
  printf("ba0 BREAKPOINT inc=%g t=%g\n", inc, t)
  SOLVE p
}

PROCEDURE p() {
  inc = inc + 1
  pval = inc
  pvalt = t
  printf("ba0 PROCEDURE inc=%g t=%g\n", inc, t)
}

AFTER SOLVE {
  inc = inc + 1
  as = inc
  ast = t
  printf("ba0 AFTER SOLVE inc=%g t=%g\n", inc, t)
}

BEFORE STEP {
  inc = inc + 1
  bs = inc
  bst = t
  printf("ba0 BEFORE STEP inc=%g t=%g\n", inc, t)
}