Skip to content

Commit

Permalink
Merge branch 'factorize-matrices-variable-bbmbbm' of https://github.c…
Browse files Browse the repository at this point in the history
…om/JoshuaLampert/DispersiveShallowWater.jl into factorize-matrices-variable-bbmbbm
  • Loading branch information
JoshuaLampert committed May 23, 2024
2 parents b999abd + 5bf3378 commit 3a07113
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/equations/bbm_bbm_variable_bathymetry_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ function create_cache(mesh, equations::BBMBBMVariableEquations1D,
K = Diagonal(D .^ 2)
if solver.D1 isa PeriodicDerivativeOperator ||
solver.D1 isa UniformPeriodicCoupledOperator
invImDKD = lu(I - 1 / 6 * sparse(solver.D1) * K * sparse(solver.D1))
sparse_D1 = sparse(solver.D1)
invImDKD = lu(I - 1 / 6 * sparse_D1 * K * sparse_D1)
elseif solver.D1 isa PeriodicUpwindOperators
invImDKD = lu(I - 1 / 6 * sparse(solver.D1.minus) * K * sparse(solver.D1.plus))
else
Expand Down

0 comments on commit 3a07113

Please sign in to comment.