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

SCM Repository

[diderot] Diff of /branches/lamont/src/compiler/c-target/c-target.sml
ViewVC logotype

Diff of /branches/lamont/src/compiler/c-target/c-target.sml

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

revision 2161, Wed Feb 20 04:32:27 2013 UTC revision 2162, Thu Feb 21 04:59:17 2013 UTC
# Line 374  Line 374 
374           val rebuild3D =  "\nupdateGrid3D(wrld->inState, wrld->outState, &wrld->gridCtx);"           val rebuild3D =  "\nupdateGrid3D(wrld->inState, wrld->outState, &wrld->gridCtx);"
375           val construct2D = "\nconstructGrid2D(wrld->inState, &wrld->gridCtx);"           val construct2D = "\nconstructGrid2D(wrld->inState, &wrld->gridCtx);"
376           val construct3D =  "\nconstructGrid3D(wrld->inState, &wrld->gridCtx);"           val construct3D =  "\nconstructGrid3D(wrld->inState, &wrld->gridCtx);"
377           val grid3DInit = concat["wrld->gridCtx.gridSize[0] = glob->qGridDim[0];\n",          val gridInit = concat["wrld->gridCtx.gridSize = &glob->qGridDim;",
378                                   "wrld->gridCtx.gridSize[1] = glob->qGridDim[1];\n",                                "wrld->gridCtx.cellSize = &glob->qCellDim;",
379                                   "wrld->gridCtx.gridSize[2] = glob->qGridDim[2];\n",                                "wrld->gridCtx.winowDim = &glob->qWinDim;",
380                                   "wrld->gridCtx.cellSize[0] = glob->qCellDim[0];\n",                                "wrld->gridCtx.numberOfStrands = wrld->numStrands;\n"]
381                                   "wrld->gridCtx.cellSize[1] = glob->qCellDim[1];\n",          val grid3DInit = concat[gridInit,construct3D]
382                                   "wrld->gridCtx.cellSize[2] = glob->qCellDim[2];\n",          val grid2DInit = concat[gridInit,construct2D]
                                  "wrld->gridCtx.numberOfStrands = wrld->numStrands;\n",  
                                  construct3D]  
   
          val grid2DInit = concat["wrld->gridCtx.gridSize[0] = glob->qGridDim[0];\n",  
                                  "wrld->gridCtx.gridSize[1] = glob->qGridDim[1];\n",  
                                  "wrld->gridCtx.cellSize[0] = glob->qCellDim[0];\n",  
                                  "wrld->gridCtx.cellSize[1] = glob->qCellDim[1];\n",  
                                  "wrld->gridCtx.numberOfStrands = wrld->numStrands;\n",  
                                  construct2D]  
   
383           val globalReduce = concat[#namespace tgt," Global_Reduction(wrld,glob,wrld->inState);"]           val globalReduce = concat[#namespace tgt," Global_Reduction(wrld,glob,wrld->inState);"]
384          in          in
385           [           [

Legend:
Removed from v.2161  
changed lines
  Added in v.2162

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