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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/new-tests/global-sum-test.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/new-tests/global-sum-test.diderot

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

revision 4328, Sun Jul 31 20:46:18 2016 UTC revision 4386, Tue Aug 9 13:51:49 2016 UTC
# Line 8  Line 8 
8   * All rights reserved.   * All rights reserved.
9   */   */
10    
11  real total = 0.0;  real total = 1.0;
12    
13  strand S (int i) {  strand S (int i) {
14    output real e = i;    output real e = i;
# Line 28  Line 28 
28    
29  initially {  initially {
30    total = sum { p.e | p in S.all };    total = sum { p.e | p in S.all };
31      print("initially: total = ", total, "\n");
32  }  }
33    
34  update {  update {
35    total = sum { p.e | p in S.all };    total = sum { p.e | p in S.all };
36      print("update: total = ", total, "\n");
37  }  }

Legend:
Removed from v.4328  
changed lines
  Added in v.4386

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