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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/particles-iso.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/particles-iso.diderot

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

revision 479, Fri Nov 19 17:01:31 2010 UTC revision 480, Fri Nov 19 17:07:01 2010 UTC
# Line 119  Line 119 
119          real energNew, energyOrig;          real energNew, energyOrig;
120    
121          (energyOrig, force) = totalEnergy(pos);          (energyOrig, force) = totalEnergy(pos);
122            // project force onto tangent plane
123            force -= outer(∇F@pos, ∇F@pos)*force
124          // ensures that step*force is a reasonable distance          // ensures that step*force is a reasonable distance
125          step = min(step, travelMax/|force|);          step = min(step, travelMax/|force|);
126          if (step*|force| > travelMax) {          if (step*|force| > travelMax) {

Legend:
Removed from v.479  
changed lines
  Added in v.480

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