Commit 77db770
For MuliFab indexing, () means all cells in all dimension, valid and ghost (#438)
This PR clarifies the use of the empty tuple index, `()`, for MultiFabs.
Giving the empty tuple as the only index of a MultiFab will return the
full array, both valid and ghost cells. This is in contrast to the
`Ellipsis` that will return the array with only value cells.
For example
```
mf = MultiFab()
mf[()] # returns valid and ghost cells
mf[...] # returns only valid cells
```
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 8e51bf0 commit 77db770
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
| 320 | + | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
0 commit comments