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

SCM Repository

[diderot] View of /tests/new-tests/test-new.diderot
ViewVC logotype

View of /tests/new-tests/test-new.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4904 - (download) (annotate)
Tue Jan 24 19:47:59 2017 UTC (2 years, 6 months ago) by jhr
File size: 265 byte(s)
working on test for parallel new
#version 2.0

// test the "new" operation
//

input int MaxNumStrands = 15;

strand S (int i) {
    output int id = i;
    update {
	if (id < MaxNumStrands) {
	    new S (2*id+1);
	    new S (2*id+2);
	}
	stabilize;
    }

}

create_collection { S(0) | i in 1..1 }

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