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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 9 months ago) by glk
File size: 682 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
#version 2.0
input real x ("a value") = 42;
input int num ("# strands") = 3;

/*
function real test() {
   print("foo = ", foo, "\n");
   return 0;
}
*/

initialize {
   print("global initialize: hello\n");
}

strand demo(int ii) {
   output real out = 0;
   initialize { print("strand ", ii, ": hello from initialize\n"); }
   start { print("strand ", ii, ": hello from start\n"); }
   update {
      print("strand ", ii, ": hello from update; done\n");
      stabilize;
   }
   stabilize { print("strand ", ii, ": hello from stabilize\n"); }
}

start {
   print("global start: hello\n");
}

update {
   print("global update: hello\n");
}

create_array { demo(ii) | ii in 1..num }

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