diff src/SbpOperators/volumeops/laplace/laplace.jl @ 751:f94feb005e7d feature/laplace_opset

Change from Dict to StaticDict in Laplace
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 19 Mar 2021 16:56:58 +0100
parents c16abc564b82
children fc83d672be36
line wrap: on
line diff
--- a/src/SbpOperators/volumeops/laplace/laplace.jl	Fri Mar 19 16:52:53 2021 +0100
+++ b/src/SbpOperators/volumeops/laplace/laplace.jl	Fri Mar 19 16:56:58 2021 +0100
@@ -18,9 +18,9 @@
     D::TMdiffop # Differential operator
     H::TMipop # Inner product operator
     H_inv::TMipop # Inverse inner product operator
-    e::Dict{BID,TMbop} # Boundary restriction operators
-    d::Dict{BID,TMbop} # Normal derivative operators
-    H_boundary::Dict{BID,TMbqop} # Boundary quadrature operators
+    e::StaticDict{BID,TMbop} # Boundary restriction operators
+    d::StaticDict{BID,TMbop} # Normal derivative operators
+    H_boundary::StaticDict{BID,TMbqop} # Boundary quadrature operators
 end
 export Laplace
 
@@ -47,7 +47,7 @@
     d_pairs = ntuple(i -> Pair(ids[i],normal_derivative(grid,d_closure_stencil,ids[i])),n_ids)
     Hᵧ_pairs = ntuple(i -> Pair(ids[i],inner_product(boundary_grid(grid,ids[i]),H_closure_stencils)),n_ids)
 
-    return Laplace(Δ, H, H⁻¹, Dict(e_pairs), Dict(d_pairs), Dict(Hᵧ_pairs))
+    return Laplace(Δ, H, H⁻¹, StaticDict(e_pairs), StaticDict(d_pairs), StaticDict(Hᵧ_pairs))
 end
 
 LazyTensors.range_size(L::Laplace) = LazyTensors.range_size(L.D)