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

SCM Repository

[diderot] Diff of /branches/lamont/test/reduction/reduction-test.diderot
ViewVC logotype

Diff of /branches/lamont/test/reduction/reduction-test.diderot

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

revision 2097, Mon Nov 26 02:47:14 2012 UTC revision 2098, Mon Nov 26 17:14:36 2012 UTC
# Line 12  Line 12 
12    
13  int{} args = load("energies.nrrd");  int{} args = load("energies.nrrd");
14  int nArgs = length(args);  int nArgs = length(args);
15    int worldHeight = 234;
16  strand Particle (real initEnergy) {  strand Particle (real initEnergy) {
17      real energy = initEnergy;      real energy = initEnergy;
18      output real maxEnergy = 0.0;      output real maxEnergy = 0.0;
19    // && Particle.stable
20    
21      update {      update {
22           maxEnergy = max{P.energy | P in {Particle.active && Particle.stable}};           maxEnergy = max{P.energy | P in {Particle.active && Particle.stable}};
23             stabilize;
24      }      }
25  }  }
26    

Legend:
Removed from v.2097  
changed lines
  Added in v.2098

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