01: #!/usr/bin/perl -w
02: #!/usr/bin/perl -d:ptkdb
03: #!
04: 
05: 
06: use strict;
07: 
08: 
09: BEGIN
10: {
11:     #! make check
12: 
13:     push @INC, '../perl';
14: 
15:     #! make distcheck
16: 
17:     push @INC, '../../perl';
18: 
19:     #! normal run
20: 
21:     push @INC, './perl';
22: 
23:     #! after install
24: 
25:     push @INC, '/usr/local/glue/swig/perl';
26: }
27: 
28: 
29: BEGIN
30: {
31:     $ENV{NEUROSPACES_NMC_MODELS} = '/usr/local/neurospaces/models/library';
32: }
33: 
34: 
35: $SIG{__DIE__}
36:     = sub {
37:         use Carp;
38: 
39:         confess @_;
40:     };
41: 
42: 
43: use GENESIS3;
44: 
45: 
46: package GENESIS3::Commands;
47: 
48: 
49: component_load("chemesis3");
50: 
51: ndf_load("chemesis/cal2.ndf");
52: 
53: chemesis3_set_timestep(0.002);
54: 
55: output_add("/soma/cal1/somaCa", "concentration");
56: output_add("/soma/cal1/somabuf", "concentration");
57: 
58: run("/cal2", 2);
59: 
60: