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

SCM Repository

[diderot] View of /branches/fem/test/tstablize.diderot
ViewVC logotype

View of /branches/fem/test/tstablize.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3210 - (download) (annotate)
Mon Jul 13 14:39:06 2015 UTC (4 years, 1 month ago) by cchiw
File size: 467 byte(s)
creating a copy of branch of vis12
// tstabilize.diderot
//
// tests use of parameters in the methods and stabilize
//

int imgSize = 200;
int maxRow = imgSize - 1;
int maxCol = imgSize - 1;

// NOTE: the compiler should create a shadow for col, but not for row.
strand RayCast (int row, int col)
{
    int r = row;
    output real maxval = 0.0; 

    update
    {
        stabilize;
    }

    stabilize {
	maxval = real(r+col);
    }
}

initially [ RayCast(r, c) | r in 0..maxRow, c in 0..maxCol ];


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