Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /tests/vis15-bugs/blocks.diderot
ViewVC logotype

Annotation of /tests/vis15-bugs/blocks.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (view) (download)

1 : glk 4640 #version 2.0
2 :     input real x ("a value") = 42;
3 :     input int num ("# strands") = 3;
4 :    
5 :     /*
6 :     function real test() {
7 :     print("foo = ", foo, "\n");
8 :     return 0;
9 :     }
10 :     */
11 :    
12 :     initialize {
13 :     print("global initialize: hello\n");
14 :     }
15 :    
16 :     strand demo(int ii) {
17 :     output real out = 0;
18 :     initialize { print("strand ", ii, ": hello from initialize\n"); }
19 :     start { print("strand ", ii, ": hello from start\n"); }
20 :     update {
21 :     print("strand ", ii, ": hello from update; done\n");
22 :     stabilize;
23 :     }
24 :     stabilize { print("strand ", ii, ": hello from stabilize\n"); }
25 :     }
26 :    
27 :     start {
28 :     print("global start: hello\n");
29 :     }
30 :    
31 :     update {
32 :     print("global update: hello\n");
33 :     }
34 :    
35 :     create_array { demo(ii) | ii in 1..num }

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0