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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1671 - (download) (annotate)
Sun Dec 4 10:56:10 2011 UTC (8 years ago) by jhr
Original Path: trunk/test/tstablize.diderot
File size: 467 byte(s)
  Merging changes from pure-cfg branch back into trunk
// 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