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

SCM Repository

[diderot] Diff of /tests/vis15-bugs/sphere-snapbug.diderot
ViewVC logotype

Diff of /tests/vis15-bugs/sphere-snapbug.diderot

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

revision 4793, Thu Oct 20 15:51:47 2016 UTC revision 4794, Mon Oct 24 11:31:07 2016 UTC
# Line 76  Line 76 
76        if (0 == ncount && (pcp > 0 && 0 == iter % pcp)) {        if (0 == ncount && (pcp > 0 && 0 == iter % pcp)) {
77           /* no neighbors, so let's make one */           /* no neighbors, so let's make one */
78           closest = rad; // hamper convergence           closest = rad; // hamper convergence
79           new particle(pos + newDist*normalize(perp3(norm)), hh);           //new particle(pos + newDist*normalize(perp3(norm)), hh);
80           continue;           continue;
81        }        }
82    
# Line 108  Line 108 
108           hh *= 1.01; // opportunistically increase step size           hh *= 1.01; // opportunistically increase step size
109           if (pcp > 0 && 0 == iter % pcp) {           if (pcp > 0 && 0 == iter % pcp) {
110              if (ncount < 5) {              if (ncount < 5) {
111                 new particle(pos + newDist*normalize(force), hh);                 //new particle(pos + newDist*normalize(force), hh);
112              } else if (ncount > 8) {              } else if (ncount > 8) {
113                 if (|fmod(pos[0]*1000, 1)| < 1.0/ncount) {                 if (|fmod(pos[0]*1000, 1)| < 1.0/ncount) {
114                    die;                    //die;
115                 }                 }
116              }              }
117           }           }

Legend:
Removed from v.4793  
changed lines
  Added in v.4794

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