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 2245, Sun Mar 3 12:51:51 2013 UTC revision 2246, Sun Mar 3 14:51:31 2013 UTC
# Line 20  Line 20 
20      int id = i;      int id = i;
21      update {      update {
22    
23        /*  if(id == 2 && steps == 1) {          if(id == 2 && steps == 1) {
24              new Particle(nEnergies + 1, 323453.545);              new Particle(nEnergies + 1, 323453.545);
25              new Particle(nEnergies + 2, 400000.000);              new Particle(nEnergies + 2, 400000.000);
26              new Particle(nEnergies + 3, 500000.343);              new Particle(nEnergies + 3, 500000.343);
27          }*/          }
   
         if(steps == 1)  
             maxE = 23.4;  
         else  
             maxE = maxEnergy + steps;  
28    
29            maxE = maxEnergy;
30    
31          if(steps == 2) {          if(steps == 3) {
32              print("The maxEnergy = ", maxE, "\n");              print("The maxEnergy = ", maxE, "\n");
33              stabilize;              stabilize;
34           }           }
# Line 41  Line 37 
37    
38  global {  global {
39      steps = steps + 1;      steps = steps + 1;
40       maxEnergy = max{S.energy | S in Particle.all};
41  }  }
42    
43  initially [ Particle(vi,energies{vi}) | vi in 0..(nEnergies-1)];  initially [ Particle(vi,energies{vi}) | vi in 0..(nEnergies-1)];

Legend:
Removed from v.2245  
changed lines
  Added in v.2246

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