diff --git a/src/amrex/space1d/__init__.pyi b/src/amrex/space1d/__init__.pyi index 30af2c5a..c846fd1f 100644 --- a/src/amrex/space1d/__init__.pyi +++ b/src/amrex/space1d/__init__.pyi @@ -475,4 +475,4 @@ __author__: str = ( "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang" ) __license__: str = "BSD-3-Clause-LBNL" -__version__: str = "24.04" +__version__: str = "24.04-14-g6c6247554f27" diff --git a/src/amrex/space1d/amrex_1d_pybind/__init__.pyi b/src/amrex/space1d/amrex_1d_pybind/__init__.pyi index 95bc8cc4..b75fc6c1 100644 --- a/src/amrex/space1d/amrex_1d_pybind/__init__.pyi +++ b/src/amrex/space1d/amrex_1d_pybind/__init__.pyi @@ -3594,7 +3594,7 @@ class BoxArray: def size(self) -> int: ... class Config: - amrex_version: typing.ClassVar[str] = "24.04" + amrex_version: typing.ClassVar[str] = "24.04-14-g6c6247554f27" gpu_backend = None have_gpu: typing.ClassVar[bool] = False have_mpi: typing.ClassVar[bool] = True @@ -5217,11 +5217,19 @@ class MultiFab(FabArray_FArrayBox): modified. """ + @typing.overload def sum(self, comp: int = 0, local: bool = False) -> float: """ Returns the sum of component 'comp' over the MultiFab -- no ghost cells are included. """ + @typing.overload + def sum(self, region: Box, comp: int = 0, local: bool = False) -> float: + """ + Returns the sum of component 'comp' in the given 'region'. -- no ghost cells are included. + """ + + @typing.overload def sum_unique( self, comp: int = 0, local: bool = False, period: Periodicity = ... ) -> float: @@ -5229,6 +5237,12 @@ class MultiFab(FabArray_FArrayBox): Same as sum with local=false, but for non-cell-centered data, thisskips non-unique points that are owned by multiple boxes. """ + @typing.overload + def sum_unique(self, region: Box, comp: int = 0, local: bool = False) -> float: + """ + Returns the unique sum of component `comp` in the given region. Non-unique points owned by multiple boxes in the MultiFab areonly added once. No ghost cells are included. This function does not takeperiodicity into account in the determination of uniqueness of points. + """ + def to_cupy(self, copy=False, order="F"): """ @@ -14581,4 +14595,4 @@ __author__: str = ( "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang" ) __license__: str = "BSD-3-Clause-LBNL" -__version__: str = "24.04" +__version__: str = "24.04-14-g6c6247554f27" diff --git a/src/amrex/space2d/__init__.pyi b/src/amrex/space2d/__init__.pyi index 8846062a..68a69151 100644 --- a/src/amrex/space2d/__init__.pyi +++ b/src/amrex/space2d/__init__.pyi @@ -523,4 +523,4 @@ __author__: str = ( "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang" ) __license__: str = "BSD-3-Clause-LBNL" -__version__: str = "24.04" +__version__: str = "24.04-14-g6c6247554f27" diff --git a/src/amrex/space2d/amrex_2d_pybind/__init__.pyi b/src/amrex/space2d/amrex_2d_pybind/__init__.pyi index 5b596191..6f69f43f 100644 --- a/src/amrex/space2d/amrex_2d_pybind/__init__.pyi +++ b/src/amrex/space2d/amrex_2d_pybind/__init__.pyi @@ -3618,7 +3618,7 @@ class BoxArray: def size(self) -> int: ... class Config: - amrex_version: typing.ClassVar[str] = "24.04" + amrex_version: typing.ClassVar[str] = "24.04-14-g6c6247554f27" gpu_backend = None have_gpu: typing.ClassVar[bool] = False have_mpi: typing.ClassVar[bool] = True @@ -5247,11 +5247,19 @@ class MultiFab(FabArray_FArrayBox): modified. """ + @typing.overload def sum(self, comp: int = 0, local: bool = False) -> float: """ Returns the sum of component 'comp' over the MultiFab -- no ghost cells are included. """ + @typing.overload + def sum(self, region: Box, comp: int = 0, local: bool = False) -> float: + """ + Returns the sum of component 'comp' in the given 'region'. -- no ghost cells are included. + """ + + @typing.overload def sum_unique( self, comp: int = 0, local: bool = False, period: Periodicity = ... ) -> float: @@ -5259,6 +5267,12 @@ class MultiFab(FabArray_FArrayBox): Same as sum with local=false, but for non-cell-centered data, thisskips non-unique points that are owned by multiple boxes. """ + @typing.overload + def sum_unique(self, region: Box, comp: int = 0, local: bool = False) -> float: + """ + Returns the unique sum of component `comp` in the given region. Non-unique points owned by multiple boxes in the MultiFab areonly added once. No ghost cells are included. This function does not takeperiodicity into account in the determination of uniqueness of points. + """ + def to_cupy(self, copy=False, order="F"): """ @@ -16343,4 +16357,4 @@ __author__: str = ( "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang" ) __license__: str = "BSD-3-Clause-LBNL" -__version__: str = "24.04" +__version__: str = "24.04-14-g6c6247554f27" diff --git a/src/amrex/space3d/__init__.pyi b/src/amrex/space3d/__init__.pyi index 71a100eb..cb5f2cb6 100644 --- a/src/amrex/space3d/__init__.pyi +++ b/src/amrex/space3d/__init__.pyi @@ -475,4 +475,4 @@ __author__: str = ( "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang" ) __license__: str = "BSD-3-Clause-LBNL" -__version__: str = "24.04" +__version__: str = "24.04-14-g6c6247554f27" diff --git a/src/amrex/space3d/amrex_3d_pybind/__init__.pyi b/src/amrex/space3d/amrex_3d_pybind/__init__.pyi index a5926ad1..c7573e8f 100644 --- a/src/amrex/space3d/amrex_3d_pybind/__init__.pyi +++ b/src/amrex/space3d/amrex_3d_pybind/__init__.pyi @@ -3594,7 +3594,7 @@ class BoxArray: def size(self) -> int: ... class Config: - amrex_version: typing.ClassVar[str] = "24.04" + amrex_version: typing.ClassVar[str] = "24.04-14-g6c6247554f27" gpu_backend = None have_gpu: typing.ClassVar[bool] = False have_mpi: typing.ClassVar[bool] = True @@ -5226,11 +5226,19 @@ class MultiFab(FabArray_FArrayBox): modified. """ + @typing.overload def sum(self, comp: int = 0, local: bool = False) -> float: """ Returns the sum of component 'comp' over the MultiFab -- no ghost cells are included. """ + @typing.overload + def sum(self, region: Box, comp: int = 0, local: bool = False) -> float: + """ + Returns the sum of component 'comp' in the given 'region'. -- no ghost cells are included. + """ + + @typing.overload def sum_unique( self, comp: int = 0, local: bool = False, period: Periodicity = ... ) -> float: @@ -5238,6 +5246,12 @@ class MultiFab(FabArray_FArrayBox): Same as sum with local=false, but for non-cell-centered data, thisskips non-unique points that are owned by multiple boxes. """ + @typing.overload + def sum_unique(self, region: Box, comp: int = 0, local: bool = False) -> float: + """ + Returns the unique sum of component `comp` in the given region. Non-unique points owned by multiple boxes in the MultiFab areonly added once. No ghost cells are included. This function does not takeperiodicity into account in the determination of uniqueness of points. + """ + def to_cupy(self, copy=False, order="F"): """ @@ -14615,4 +14629,4 @@ __author__: str = ( "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang" ) __license__: str = "BSD-3-Clause-LBNL" -__version__: str = "24.04" +__version__: str = "24.04-14-g6c6247554f27"