Skip to content

Commit fa3c28b

Browse files
committed
fix nonuniform lattice plotting
1 parent ebb8a56 commit fa3c28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: openmc/lattice.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ def find_element(self, point):
24342434
if (p < self.base_coordinate):
24352435
idx = -1
24362436
elif (p > self._layer_boundaries[-1]):
2437-
idx = self.num_layers + 1
2437+
idx = self.num_layers
24382438
else:
24392439
while not(p >= self._layer_boundaries[idx] and p <= self._layer_boundaries[idx + 1]):
24402440
idx += 1

0 commit comments

Comments
 (0)