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 3085, Tue Mar 17 14:33:42 2015 UTC revision 3086, Tue Mar 17 16:35:19 2015 UTC
# Line 190  Line 190 
190    // get snapshot of state    // get snapshot of state
191      if (ISO_Snapshot_pos (wrld, nData)) {      if (ISO_Snapshot_pos (wrld, nData)) {
192        // error        // error
193          fprintf(stderr, "Error getting nrrd data\n");          fprintf(stderr, "Error getting nrrd data: %s", ISO_GetErrors(wrld));
194          exit(1);          exit(1);
195      }      }
196  }  }
# Line 247  Line 247 
247      WrldDim[1] = 0.013125 * 80.0;      WrldDim[1] = 0.013125 * 80.0;
248    
249    // initialize the Diderot program    // initialize the Diderot program
250      ISO_World_t *wrld = ISO_Init ();      ISO_World_t *wrld = ISO_New ();
251        if (wrld == 0) {
252            fprintf (stderr, "Unable to create Diderot world\n");
253            exit (1);
254        }
255        if (ISO_Init(wrld)) {
256            fprintf (stderr, "Error initializing Diderot: %s", ISO_GetErrors(wrld));
257            exit (1);
258        }
259      ISO_InVarSet_stepScale (wrld, 0.05);      ISO_InVarSet_stepScale (wrld, 0.05);
260      ISO_InVarSet_stepsMax (wrld, 200);      ISO_InVarSet_stepsMax (wrld, 200);
261      ISO_Initially (wrld);      ISO_Initially (wrld);

Legend:
Removed from v.3085  
changed lines
  Added in v.3086

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