Currently, we use an LU factorization for the BBMBBMEquations1D and BBMBBMVariableEquations1D although the matrix is spd, which means we could use a Cholesky decomposition. We did this because ldiv! was not supported for sparse Cholesky factorizations, see the discussion in https://github.com/JoshuaLampert/DispersiveShallowWater.jl/pull/108#discussion_r1608314166. For the SvaerdKalischEquations1D we use a sparse Cholesky decomposition, but use \ instead of ldiv!, again, because ldiv! was not implemented for sparse Cholesky decompositions.
Once https://github.com/JuliaSparse/SparseArrays.jl/pull/547 (thanks for the PR @ranocha!) is available, it should be possible to use a sparse Cholesky decomposition together with ldiv! for all equations. This will be with Julia v1.12.
Currently, we use an LU factorization for the
BBMBBMEquations1D
andBBMBBMVariableEquations1D
although the matrix is spd, which means we could use a Cholesky decomposition. We did this becauseldiv!
was not supported for sparse Cholesky factorizations, see the discussion in https://github.com/JoshuaLampert/DispersiveShallowWater.jl/pull/108#discussion_r1608314166. For theSvaerdKalischEquations1D
we use a sparse Cholesky decomposition, but use\
instead ofldiv!
, again, becauseldiv!
was not implemented for sparse Cholesky decompositions. Once https://github.com/JuliaSparse/SparseArrays.jl/pull/547 (thanks for the PR @ranocha!) is available, it should be possible to use a sparse Cholesky decomposition together withldiv!
for all equations. This will be with Julia v1.12.