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

SCM Repository

[diderot] Diff of /branches/vis12-cl/src/compiler/c-target/fragments/par-main.in
ViewVC logotype

Diff of /branches/vis12-cl/src/compiler/c-target/fragments/par-main.in

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

revision 2402, Sat Jul 27 13:55:03 2013 UTC revision 2710, Sat Sep 20 19:32:09 2014 UTC
# Line 5  Line 5 
5      bool        printOutputFlg = false; //! true if output is in text format      bool        printOutputFlg = false; //! true if output is in text format
6    
7    // create the world    // create the world
8      @PREFIX@World_t *wrld = @PREFIX@Init();      @PREFIX@World_t *wrld = @PREFIX@New();
9      if (wrld == 0) {      if (wrld == 0) {
10          fprintf(stderr, "unable to create world\n");          fprintf(stderr, "unable to create world\n");
11          exit (1);          exit (1);
# Line 25  Line 25 
25          Diderot_OptProcess (opts, argc, argv);          Diderot_OptProcess (opts, argc, argv);
26          Diderot_OptFree (opts);          Diderot_OptFree (opts);
27          wrld->sched->numWorkers = np;          wrld->sched->numWorkers = np;
28          InitInputs (wrld, &inputs);          if (InitInputs (wrld, &inputs)) {
29                fprintf(stderr, "Error initializing inputs:\n%s\n", biffMsgStrGet(wrld->errors));
30                exit(1);
31            }
32        }
33    
34      // initialize scheduler stuff
35        if (wrld->verboseFlg)
36            fprintf (stderr, "initializing world ...\n");
37        if (@PREFIX@Init (wrld)) {
38            fprintf(stderr, "Error initializing world:\n%s\n", biffMsgStrGet(wrld->errors));
39            exit(1);
40      }      }
41    
42    // run the generated global initialization code    // run the generated global initialization code
43      if (wrld->verboseFlg)      if (wrld->verboseFlg)
44          fprintf (stderr, "initializing globals ...\n");          fprintf (stderr, "initializing globals ...\n");
45      if (@PREFIX@Initially (wrld)) {      if (@PREFIX@Initially (wrld)) {
46          fprintf(stderr, "Error getting initializing:\n%s\n", biffMsgStrGet(wrld->errors));          fprintf(stderr, "Error in global initialization:\n%s\n", biffMsgStrGet(wrld->errors));
47          exit(1);          exit(1);
48      }      }
49    

Legend:
Removed from v.2402  
changed lines
  Added in v.2710

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