@@ -264,15 +264,15 @@ function create_cache(mesh, equations::SvaerdKalischEquations1D,
264264 D1 isa FourierDerivativeOperator
265265 D1_central = D1
266266 D1mat = sparse (D1_central)
267- minus_MD1betaD1 = D1mat' * Diagonal (M_beta) * D1mat
267+ minus_MD1betaD1 = D1mat' * ( Diagonal (M_beta) * D1mat)
268268 system_matrix = let cache = (; D1, M_h, minus_MD1betaD1)
269269 assemble_system_matrix! (cache, h,
270270 equations, boundary_conditions)
271271 end
272272 elseif D1 isa PeriodicUpwindOperators
273273 D1_central = D1. central
274274 D1mat_minus = sparse (D1. minus)
275- minus_MD1betaD1 = D1mat_minus' * Diagonal (M_beta) * D1mat_minus
275+ minus_MD1betaD1 = D1mat_minus' * ( Diagonal (M_beta) * D1mat_minus)
276276 system_matrix = let cache = (; D1, M_h, minus_MD1betaD1)
277277 assemble_system_matrix! (cache, h,
278278 equations, boundary_conditions)
@@ -326,16 +326,16 @@ function create_cache(mesh, equations::SvaerdKalischEquations1D,
326326 D1 isa UniformCoupledOperator
327327 D1_central = D1
328328 D1mat = sparse (D1_central)
329- minus_MD1betaD1 = sparse (D1mat' * Diagonal (M_beta) *
330- D1mat * Pd)[(begin + 1 ): (end - 1 ), :]
329+ minus_MD1betaD1 = sparse (D1mat' * ( Diagonal (M_beta) *
330+ D1mat * Pd)) [(begin + 1 ): (end - 1 ), :]
331331 system_matrix = let cache = (; D1, M_h, minus_MD1betaD1)
332332 assemble_system_matrix! (cache, h, equations, boundary_conditions)
333333 end
334334 elseif D1 isa UpwindOperators
335335 D1_central = D1. central
336336 D1mat_minus = sparse (D1. minus)
337- minus_MD1betaD1 = sparse (D1mat_minus' * Diagonal (M_beta) *
338- D1mat_minus * Pd)[(begin + 1 ): (end - 1 ), :]
337+ minus_MD1betaD1 = sparse (D1mat_minus' * ( Diagonal (M_beta) *
338+ D1mat_minus * Pd)) [(begin + 1 ): (end - 1 ), :]
339339 system_matrix = let cache = (; D1, M_h, minus_MD1betaD1)
340340 assemble_system_matrix! (cache, h, equations, boundary_conditions)
341341 end
0 commit comments