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

SCM Repository

[diderot] View of /branches/lamont/test/test_foreach.diderot
ViewVC logotype

View of /branches/lamont/test/test_foreach.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2316 - (download) (annotate)
Thu Mar 21 22:40:53 2013 UTC (6 years, 5 months ago) by lamonts
File size: 302 byte(s)
Fixed bug: Correctly checked for spatial communication by checking for query functions
int{10} indices = {0, 1, 2, 3, 4,5,6,7,8,9};

strand Particle(real start)
{
    real pos = 0.0;
    output real pose = start;
    update
    {
        foreach(int i in indices)
        {
            pose += real(i);
        }
        stabilize;
    }
}

initially [ Particle(real(n)) | n in 1..100 ];

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