Skip to content

Commit

Permalink
Revert "removing some glue code introduced for matmul!"
Browse files Browse the repository at this point in the history
This reverts commit 1fd1897.
  • Loading branch information
jlchan committed May 22, 2024
1 parent 72ba309 commit 9a567d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/solvers/dgmulti/dg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ end
# out <- out + A * x
mul_by_accum!(A) = mul_by_accum!(A, One())

# specialize for SBP operators since `matmul!` doesn't work for `UniformScaling` types.
struct MulByUniformScaling end
struct MulByAccumUniformScaling end
mul_by!(A::UniformScaling) = MulByUniformScaling()
mul_by_accum!(A::UniformScaling) = MulByAccumUniformScaling()

# StructArray fallback
@inline function apply_to_each_field(f::F, args::Vararg{Any, N}) where {F, N}
StructArrays.foreachfield(f, args...)
Expand Down

0 comments on commit 9a567d7

Please sign in to comment.