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

SCM Repository

[diderot] Diff of /branches/vis12/test/hlic/main.c
ViewVC logotype

Diff of /branches/vis12/test/hlic/main.c

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

revision 1767, Sat Mar 24 12:09:41 2012 UTC revision 1768, Sat Mar 24 12:10:03 2012 UTC
# Line 5  Line 5 
5    
6  int main (int argc, const char **argv)  int main (int argc, const char **argv)
7  {  {
8      DDRO_World_t *wrld = DDRO_Init ();      HLIC_World_t *wrld = HLIC_Init ();
9    
10      DDRO_SetVerbose (wrld, true);      HLIC_SetVerbose (wrld, true);
11    
12      DDRO_Initially (wrld);      HLIC_Initially (wrld);
13    
14      uint32_t nSteps = DDRO_Run (wrld, 0);      uint32_t nSteps = HLIC_Run (wrld, 0);
15    
16    // get results    // get results
17      Nrrd *nData = nrrdNew();      Nrrd *nData = nrrdNew();
18      if (DDRO_Get_out(wrld, nData)) {      if (HLIC_Get_out(wrld, nData)) {
19        // error        // error
20          fprintf(stderr, "Error getting nrrd data: %s\n", ((WorldPrefix_t *)wrld)->err);          fprintf(stderr, "Error getting nrrd data: %s\n", ((WorldPrefix_t *)wrld)->err);
21          return 1;          return 1;
# Line 55  Line 55 
55          return 1;          return 1;
56      }      }
57    
58      DDRO_Shutdown (wrld);      HLIC_Shutdown (wrld);
59    
60      return 0;      return 0;
61  }  }

Legend:
Removed from v.1767  
changed lines
  Added in v.1768

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