We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getboundary
1 parent 43525e1 commit 975a62bCopy full SHA for 975a62b
src/boundaries/corner/cornermethod.jl
@@ -92,10 +92,10 @@ function getboundary(corners::Corners, i...)
92
93
(x, y) = to_indices(C1.data, i)
94
95
- x1 = firstindex(x)
96
- y1 = firstindex(y)
97
- x2 = lastindex(x)
98
- y2 = lastindex(y)
+ x1 = first(x)
+ y1 = first(y)
+ x2 = last(x)
+ y2 = last(y)
99
100
c1 = C1[x1 - 1, y1 - 1]
101
c2 = C2[x2 + 1, y1 - 1]
@@ -110,10 +110,10 @@ function getboundary(edges::Edges, i...)
110
111
(x, y) = to_indices(T1.data, i)
112
113
114
115
116
117
118
@views begin
119
t1s = T1[x1:x2, y1 - 1]
0 commit comments