Skip to content

Commit

Permalink
Fixed outter midplane and inner midplane
Browse files Browse the repository at this point in the history
  • Loading branch information
anchal-physics committed Sep 19, 2023
1 parent 3062359 commit 3523eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SOLPS2IMAS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ Returns true if boundary_ind of a cell at ix, iy is on outer midplane
"""
function is_outer_midplane(; ix, iy, jxa, boundary_ind, topcut, kwargs...)
# Note: USING CONVENTION to mark bottom edge of the midplane cell as midplane
return ix == jxa && boundary_ind == 1
return ix == jxa && boundary_ind == 2
end


Expand All @@ -422,7 +422,7 @@ Returns true if boundary_ind of a cell at ix, iy is on outer midplane
"""
function is_inner_midplane(; ix, iy, jxi, boundary_ind, topcut, kwargs...)
# Note: USING CONVENTION to mark bottom edge of the midplane cell as midplane
return ix == jxi && boundary_ind == 1
return ix == jxi && boundary_ind == 4
end


Expand Down

0 comments on commit 3523eda

Please sign in to comment.