Skip to content

Commit c85bb52

Browse files
authored
Merge pull request #141 from gridap/emscatter_fix
Simple performance improvement for emscatter tutorial
2 parents a8fc85d + 168abca commit c85bb52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/emscatter.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ dΓ = Measure(Γ,degree)
120120
# ### PML parameters
121121
Rpml = 1e-12 # Tolerence for PML reflection
122122
σ = -3/4*log(Rpml)/d_pml # σ_0
123-
LH = [L,H] # Size of the PML inner boundary (a rectangular centere at (0,0))
123+
LH = (L,H) # Size of the PML inner boundary (a rectangular centere at (0,0))
124124

125125
# ### PML coordinate streching functions
126126
function s_PML(x,σ,k,LH,d_pml)
@@ -137,7 +137,7 @@ end
137137
struct Λ<:Function
138138
σ::Float64
139139
k::Float64
140-
LH::Vector{Float64}
140+
LH::NTuple{2,Float64}
141141
d_pml::Float64
142142
end
143143

0 commit comments

Comments
 (0)