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

SCM Repository

[diderot] Diff of /trunk/test/particles-iso.diderot
ViewVC logotype

Diff of /trunk/test/particles-iso.diderot

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

revision 481, Fri Nov 19 20:49:06 2010 UTC revision 483, Fri Nov 19 20:49:20 2010 UTC
# Line 124  Line 124 
124          force -= outer(norm, norm)*force          force -= outer(norm, norm)*force
125          // ensures that step*force is a reasonable distance          // ensures that step*force is a reasonable distance
126          step = min(step, travelMax/|force|);          step = min(step, travelMax/|force|);
         if (step*|force| > travelMax) {  
            step = travelMax/|force|;  
         }  
127          do {          do {
128             (bool ok, posNew) = constrain(pos + step*force);             (bool ok, posNew) = constrain(pos + step*force);
129             if (!ok) {             if (!ok) {

Legend:
Removed from v.481  
changed lines
  Added in v.483

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