Skip to content

Commit

Permalink
Corrected calculation of the gradient of the WendlandQuinticC2Kernel.…
Browse files Browse the repository at this point in the history
… See also Line 591. (#347)
  • Loading branch information
holgergoe authored Feb 4, 2025
1 parent 08f9fc8 commit e773d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SPlisHSPlasH/SPHKernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ namespace SPH
if (q <= 1.0)
{
const Vector3r gradq = r * (static_cast<Real>(1.0) / (rl*m_radius));
res = m_l*gradq*pow(static_cast<Real>(1.0) - q, 3);
res = m_l*q*pow(static_cast<Real>(1.0) - q, static_cast<Real>(3.0))*gradq;
}
else
res.setZero();
Expand Down

0 comments on commit e773d3e

Please sign in to comment.