Skip to content

Commit 544bd4f

Browse files
authored
[documentation] Additional modification in custom_workspaces.md (#1019)
1 parent 43bea06 commit 544bd4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/custom_workspaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function LinearAlgebra.mul!(y::HaloVector{Float64}, A::LaplacianOperator, u::Hal
140140
# Add a tiny value ε to the diagonal to ensure the operator is
141141
# symmetric positive definite (SPD) and to avoid numerical issues
142142
if i == j
143-
y.data[i,j] += 1e-8
143+
y.data[i,j] += 1e-12 * u.data[i,j]
144144
end
145145
end
146146
end

0 commit comments

Comments
 (0)