Skip to content

Commit

Permalink
[geom] Update to +/- grid boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Apr 23, 2024
1 parent b523cc8 commit 782e3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phi/geom/_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def boundary_elements(self) -> Dict[Any, Dict[str, slice]]:
def boundary_faces(self) -> Dict[Any, Dict[str, slice]]:
result = {}
for dim in self.vector.item_names:
result[(dim, False)] = {'~vector': dim, dim: slice(1)}
result[(dim, True)] = {'~vector': dim, dim: slice(-1, None)}
result[dim+'-'] = {'~vector': dim, dim: slice(1)}
result[dim+'+'] = {'~vector': dim, dim: slice(-1, None)}
return result

@property
Expand Down

0 comments on commit 782e3a7

Please sign in to comment.