Skip to content

Commit 1aa1db3

Browse files
WeiqunZhanggithub-actions[bot]
authored andcommitted
Update Stub Files
1 parent 62f23ae commit 1aa1db3

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

src/amrex/space1d/amrex_1d_pybind/__init__.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4935,6 +4935,10 @@ class BoxArray:
49354935
@typing.overload
49364936
def coarsenable(self, arg0: IntVect1D, arg1: IntVect1D) -> bool: ...
49374937
def define(self, arg0: Box) -> None: ...
4938+
@typing.overload
4939+
def enclosed_cells(self) -> BoxArray: ...
4940+
@typing.overload
4941+
def enclosed_cells(self, arg0: int) -> BoxArray: ...
49384942
def get(self, arg0: int) -> Box: ...
49394943
def ix_type(self) -> IndexType: ...
49404944
@typing.overload
@@ -6276,7 +6280,7 @@ class MultiFab(FabArray_FArrayBox):
62766280
"""
62776281
dst = src + a*dst
62786282
"""
6279-
def __getitem__(self, index):
6283+
def __getitem__(self, index, with_internal_ghosts=False):
62806284
"""
62816285
Returns slice of the MultiFab using global indexing, as a numpy array.
62826286
This uses numpy array indexing, with the indexing relative to the global array.
@@ -6298,6 +6302,9 @@ class MultiFab(FabArray_FArrayBox):
62986302
----------
62996303
index : the index using numpy style indexing
63006304
Index of the slice to return.
6305+
with_internal_ghosts : bool, optional
6306+
Whether to include internal ghost cells. When true, data from ghost cells may be used that
6307+
overlaps valid cells.
63016308

63026309
"""
63036310
@typing.overload

src/amrex/space2d/amrex_2d_pybind/__init__.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4959,6 +4959,10 @@ class BoxArray:
49594959
@typing.overload
49604960
def coarsenable(self, arg0: IntVect2D, arg1: IntVect2D) -> bool: ...
49614961
def define(self, arg0: Box) -> None: ...
4962+
@typing.overload
4963+
def enclosed_cells(self) -> BoxArray: ...
4964+
@typing.overload
4965+
def enclosed_cells(self, arg0: int) -> BoxArray: ...
49624966
def get(self, arg0: int) -> Box: ...
49634967
def ix_type(self) -> IndexType: ...
49644968
@typing.overload
@@ -6304,7 +6308,7 @@ class MultiFab(FabArray_FArrayBox):
63046308
"""
63056309
dst = src + a*dst
63066310
"""
6307-
def __getitem__(self, index):
6311+
def __getitem__(self, index, with_internal_ghosts=False):
63086312
"""
63096313
Returns slice of the MultiFab using global indexing, as a numpy array.
63106314
This uses numpy array indexing, with the indexing relative to the global array.
@@ -6326,6 +6330,9 @@ class MultiFab(FabArray_FArrayBox):
63266330
----------
63276331
index : the index using numpy style indexing
63286332
Index of the slice to return.
6333+
with_internal_ghosts : bool, optional
6334+
Whether to include internal ghost cells. When true, data from ghost cells may be used that
6335+
overlaps valid cells.
63296336

63306337
"""
63316338
@typing.overload

src/amrex/space3d/amrex_3d_pybind/__init__.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4935,6 +4935,10 @@ class BoxArray:
49354935
@typing.overload
49364936
def coarsenable(self, arg0: IntVect3D, arg1: IntVect3D) -> bool: ...
49374937
def define(self, arg0: Box) -> None: ...
4938+
@typing.overload
4939+
def enclosed_cells(self) -> BoxArray: ...
4940+
@typing.overload
4941+
def enclosed_cells(self, arg0: int) -> BoxArray: ...
49384942
def get(self, arg0: int) -> Box: ...
49394943
def ix_type(self) -> IndexType: ...
49404944
@typing.overload
@@ -6283,7 +6287,7 @@ class MultiFab(FabArray_FArrayBox):
62836287
"""
62846288
dst = src + a*dst
62856289
"""
6286-
def __getitem__(self, index):
6290+
def __getitem__(self, index, with_internal_ghosts=False):
62876291
"""
62886292
Returns slice of the MultiFab using global indexing, as a numpy array.
62896293
This uses numpy array indexing, with the indexing relative to the global array.
@@ -6305,6 +6309,9 @@ class MultiFab(FabArray_FArrayBox):
63056309
----------
63066310
index : the index using numpy style indexing
63076311
Index of the slice to return.
6312+
with_internal_ghosts : bool, optional
6313+
Whether to include internal ghost cells. When true, data from ghost cells may be used that
6314+
overlaps valid cells.
63086315

63096316
"""
63106317
@typing.overload

0 commit comments

Comments
 (0)