← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3521: Fix typo in Bspline kernel functio (sph).

 

------------------------------------------------------------
revno: 3521
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Tue 2014-11-04 07:45:39 +0100
message:
  Fix typo in Bspline  kernel functio (sph).
  
  Thanks to Sebastian Borrmann for pointing this out.
modified:
  pkg/common/SPHEngine.cpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/common/SPHEngine.cpp'
--- pkg/common/SPHEngine.cpp	2014-11-03 13:32:49 +0000
+++ pkg/common/SPHEngine.cpp	2014-11-04 06:45:39 +0000
@@ -102,7 +102,7 @@
     const Real coefA = 3. / (2. * M_PI * h * h * h);
     const Real r_h = r / h;
     if (r<=h) {
-      return coefA * (-2. * r_h ) * (1. - 3. / 2. * r_h);
+      return coefA * ( -r_h ) * (2. - 3. / 2. * r_h);
     } else {
       return coefA * (-1. / 2.) * std::pow((2. - r_h), 2);
     }