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

SCM Repository

[diderot] Diff of /examples/iso2d-demo/main.c
ViewVC logotype

Diff of /examples/iso2d-demo/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2078, Mon Nov 5 12:00:48 2012 UTC revision 2079, Mon Nov 5 12:50:51 2012 UTC
# Line 248  Line 248 
248    
249    // initialize the Diderot program    // initialize the Diderot program
250      ISO_World_t *wrld = ISO_Init ();      ISO_World_t *wrld = ISO_Init ();
251        ISO_InVarSet_stepScale (wrld, 0.05);
252        ISO_InVarSet_stepsMax (wrld, 200);
253      ISO_Initially (wrld);      ISO_Initially (wrld);
254    
255    // nrrd for getting computational state    // nrrd for getting computational state
# Line 266  Line 268 
268                // get and render the state                // get and render the state
269                  GetData (wrld, nData);                  GetData (wrld, nData);
270                  Draw (nData);                  Draw (nData);
271                  usleep (SLEEP_MS * 1000);  // sleep for a bit                  usleep (SLEEP_MS * 50);  // sleep for a bit
272              }              }
273              if (ISO_NumActive(wrld) == 0) {              if (ISO_NumActive(wrld) == 0) {
274                // get and render final state                // get and render final state

Legend:
Removed from v.2078  
changed lines
  Added in v.2079

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