Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulxshen committed Jan 7, 2025
1 parent d5a4d1d commit 0933b35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pic/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function picrun(path; array=Array, kw...)
a = downsample(a, 2)
reverse(a', dims=2)
end)
a = downsample(a, (1, 1, 2))
# a = a[Base.OneTo.(min.(size(a), sz))...]
@unpack material, thickness = v

Expand All @@ -69,7 +70,7 @@ function picrun(path; array=Array, kw...)

ϵ = matprops(material).ϵ |> Nf
ϵmin = min(ϵ, ϵmin) |> Nf
ϵ3[I...] .*= 1N4f4 - a
ϵ3[I...] .*= 1 - a
ϵ3[I...] .+= a .* ϵ
end
ϵ3 = max.(ϵmin, ϵ3)
Expand Down

0 comments on commit 0933b35

Please sign in to comment.