ConjugateGradientPoissonSolver
's FFTBasedPoissonSolver
doesn't need to flip sign since it's already semi-positive definite
#4581
Labels
immersed boundaries ⛰️
Less Ocean, more anigans
numerics 🧮
So things don't blow up and boil the lobsters alive
Uh oh!
There was an error while loading. Please reload this page.
As discussed with @glwagner and @tomchor and outlined in #4539, reverting
Oceananigans.jl/src/Solvers/conjugate_gradient_poisson_solver.jl
Line 132 in 51a77cc
FFTBasedPoissonSolver
solvesFFTBasedPoissonSolver
is (semi-) positive definite. Here's a script to illustrate this point:which outputs
true
, which illustrate thatFFTBasedPoissonSolver
does indeed invert∇²ᶜᶜᶜ(i, j, k, grid, ϕ)
.Beyond this we should also remove the shift in the preconditioner
Oceananigans.jl/src/Solvers/conjugate_gradient_poisson_solver.jl
Line 131 in 51a77cc
@amontoison
The text was updated successfully, but these errors were encountered: