Skip to content

Commit e773d3e

Browse files
authored
Corrected calculation of the gradient of the WendlandQuinticC2Kernel. See also Line 591. (#347)
1 parent 08f9fc8 commit e773d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SPlisHSPlasH/SPHKernels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ namespace SPH
315315
if (q <= 1.0)
316316
{
317317
const Vector3r gradq = r * (static_cast<Real>(1.0) / (rl*m_radius));
318-
res = m_l*gradq*pow(static_cast<Real>(1.0) - q, 3);
318+
res = m_l*q*pow(static_cast<Real>(1.0) - q, static_cast<Real>(3.0))*gradq;
319319
}
320320
else
321321
res.setZero();

0 commit comments

Comments
 (0)