Skip to content

Commit

Permalink
Merge pull request #24 from ProjectTorreyPines/dimensions
Browse files Browse the repository at this point in the history
Corrected hard-coded dimension use and comments.
  • Loading branch information
anchal-physics authored Nov 3, 2023
2 parents 75d2cce + 188ae4f commit fbaa727
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/subset_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ end
Overloading ∈ operator to check if a point is inside a subset of space.
If the subset is 0-dimensional, all points are searched. If the subset is 1-dimensional,
If the subset is 1-dimensional, all points are searched. If the subset is 2-dimensional,
it is checked if the point is within the enclosed area. It is assumed that a
1-dimensional subset used in such a context will form a closed area. If the subset is
2-dimensional, its boundary is calculated on the fly. If used multiple times, it is
2-dimensional subset used in such a context will form a closed area. If the subset is
3-dimensional, its boundary is calculated on the fly. If used multiple times, it is
recommended to calculate the boundary once and store it in a variable.
"""
function Base.:(
Expand All @@ -179,12 +179,12 @@ function Base.:∈(
dim = subset.element[1].object[1].dimension
nodes = space.objects_per_dimension[1].object
edges = space.objects_per_dimension[2].object
if dim == 2
if dim == 3
subset_bnd = OMAS.edge_profiles__grid_ggd___grid_subset()
subset_bnd.element = get_subset_boundary(space, subset)
elseif dim == 1
elseif dim == 2
subset_bnd = subset
elseif dim == 0
elseif dim == 1
for ele subset.element
node = nodes[ele.object[1].index]
if node.geometry[1] == r && node.geometry[2] == z
Expand Down

0 comments on commit fbaa727

Please sign in to comment.