Skip to content

Commit 3c3917e

Browse files
authored
use banded matrix decomposition instead of dense LU for BBM-BBM (#170)
1 parent 1c6989a commit 3c3917e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/equations/bbm_bbm_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function create_cache(mesh, equations::BBMBBMEquations1D,
371371
N = nnodes(mesh)
372372
M = mass_matrix(solver.D1)
373373
Pd = BandedMatrix((-1 => fill(one(real(mesh)), N - 2),), (N, N - 2))
374-
D2d = (sparse(solver.D2) * Pd)[2:(end - 1), :]
374+
D2d = (BandedMatrix(solver.D2) * Pd)[2:(end - 1), :]
375375
# homogeneous Dirichlet boundary conditions
376376
invImD2d = lu(I - 1 / 6 * D2d * K_i)
377377
m = diag(M)

0 commit comments

Comments
 (0)