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

SCM Repository

[diderot] Diff of /trunk/src/lib/c-target/main.c
ViewVC logotype

Diff of /trunk/src/lib/c-target/main.c

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

revision 1131, Thu May 5 18:53:48 2011 UTC revision 1232, Mon May 16 23:37:52 2011 UTC
# Line 30  Line 30 
30  {  {
31    //    //
32  printf("initializing globals ...\n");  printf("initializing globals ...\n");
33      Diderot_InitGlobals ();      Diderot_InitGlobals (argc, argv);
34    
35    // FIXME: we need to figure out how initialization should be handled.    // FIXME: we need to figure out how initialization should be handled.
36  printf("initializing strands ...\n");  printf("initializing strands ...\n");
# Line 61  Line 61 
61                      wrld->status[i] = DIDEROT_DIE;                      wrld->status[i] = DIDEROT_DIE;
62                      nActive--;                      nActive--;
63                      break;                      break;
64                      default:
65                        break;
66                  }                  }
67              }              }
68          }          }
# Line 95  Line 97 
97      }      }
98      fclose (outS);      fclose (outS);
99    
100        Diderot_Shutdown (wrld);
101    
102      return 0;      return 0;
103    
104  }  }
# Line 123  Line 127 
127      wrld->isArray = isArray;      wrld->isArray = isArray;
128      wrld->nDims = nDims;      wrld->nDims = nDims;
129      wrld->base = (int32_t *) malloc (nDims * sizeof(int32_t));      wrld->base = (int32_t *) malloc (nDims * sizeof(int32_t));
130      wrld->size = (int32_t *) malloc (nDims * sizeof(int32_t));      wrld->size = (uint32_t *) malloc (nDims * sizeof(uint32_t));
131      size_t numStrands = 1;      size_t numStrands = 1;
132      for (int i = 0;  i < wrld->nDims;  i++) {      for (int i = 0;  i < wrld->nDims;  i++) {
133          numStrands *= size[i];          numStrands *= size[i];

Legend:
Removed from v.1131  
changed lines
  Added in v.1232

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