Closed efaulhaber closed 6 months ago
Attention: Patch coverage is 80.00000%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 69.42%. Comparing base (
228b86d
) to head (f90e263
).
Files | Patch % | Lines |
---|---|---|
src/general/corrections.jl | 80.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The
SMatrix
implementation ofpinv
is just falling back to the regular matrix definition, which is then causing allocations and is 400x slower thaninv
for anSMatrix
. We found that the matrix is singular if and only if a particle and all neighbors are collinear (in 2D) or lie on the same plane (in 3D). This only happens when either two (in 2D) or three (in 3D) particles are isolated, or on the edges of a very deformed domain. So only in edge cases where the fluid itself has a singularity. In these cases, we now just disable the correction and use the uncorrected gradient instead. Also see the proof in the comments.This PR fixes the failing tests in #434.