Skip to content

Commit cf0c15b

Browse files
ax3lgithub-actions[bot]
authored andcommitted
Update Stub Files
1 parent 31dd33b commit cf0c15b

File tree

3 files changed

+252
-0
lines changed

3 files changed

+252
-0
lines changed

src/amrex/space1d/amrex_1d_pybind/__init__.pyi

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23350,6 +23350,7 @@ class iMultiFab(FabArray_IArrayBox):
2335023350
Input value to assign to the specified slice of the MultiFab
2335123351

2335223352
"""
23353+
@typing.overload
2335323354
def add(
2335423355
self,
2335523356
src: iMultiFab,
@@ -23362,6 +23363,19 @@ class iMultiFab(FabArray_IArrayBox):
2336223363
Add src to self including nghost ghost cells.
2336323364
The two MultiFabs MUST have the same underlying BoxArray.
2336423365
"""
23366+
@typing.overload
23367+
def add(
23368+
self,
23369+
src: iMultiFab,
23370+
srccomp: typing.SupportsInt,
23371+
comp: typing.SupportsInt,
23372+
numcomp: typing.SupportsInt,
23373+
nghost: IntVect1D,
23374+
) -> None:
23375+
"""
23376+
Add src to self including nghost ghost cells.
23377+
The two MultiFabs MUST have the same underlying BoxArray.
23378+
"""
2336523379
def box_array(self: FabArrayBase) -> BoxArray: ...
2336623380
def copy(self):
2336723381
"""
@@ -23408,6 +23422,7 @@ class iMultiFab(FabArray_IArrayBox):
2340823422
each FArrayBox will be modified. Note, nothing is done to protect
2340923423
against divide by zero.
2341023424
"""
23425+
@typing.overload
2341123426
def divide(
2341223427
self,
2341323428
src: iMultiFab,
@@ -23420,6 +23435,19 @@ class iMultiFab(FabArray_IArrayBox):
2342023435
Divide self by src including nghost ghost cells.
2342123436
The two MultiFabs MUST have the same underlying BoxArray.
2342223437
"""
23438+
@typing.overload
23439+
def divide(
23440+
self,
23441+
src: iMultiFab,
23442+
srccomp: typing.SupportsInt,
23443+
comp: typing.SupportsInt,
23444+
numcomp: typing.SupportsInt,
23445+
nghost: IntVect1D,
23446+
) -> None:
23447+
"""
23448+
Divide self by src including nghost ghost cells.
23449+
The two MultiFabs MUST have the same underlying BoxArray.
23450+
"""
2342323451
def dm(self: FabArrayBase) -> DistributionMapping: ...
2342423452
def imesh(self, idir, include_ghosts=False):
2342523453
"""
@@ -23552,6 +23580,7 @@ class iMultiFab(FabArray_IArrayBox):
2355223580
specifies the number of cells in the boundary region of each
2355323581
FArrayBox in the subregion that should be modified.
2355423582
"""
23583+
@typing.overload
2355523584
def multiply(
2355623585
self,
2355723586
src: iMultiFab,
@@ -23565,6 +23594,19 @@ class iMultiFab(FabArray_IArrayBox):
2356523594
The two MultiFabs MUST have the same underlying BoxArray.
2356623595
"""
2356723596
@typing.overload
23597+
def multiply(
23598+
self,
23599+
src: iMultiFab,
23600+
srccomp: typing.SupportsInt,
23601+
comp: typing.SupportsInt,
23602+
numcomp: typing.SupportsInt,
23603+
nghost: IntVect1D,
23604+
) -> None:
23605+
"""
23606+
Multiply self by src including nghost ghost cells.
23607+
The two MultiFabs MUST have the same underlying BoxArray.
23608+
"""
23609+
@typing.overload
2356823610
def negate(self, nghost: typing.SupportsInt = 0) -> None:
2356923611
"""
2357023612
Negates the value of each cell in the valid region of
@@ -23673,6 +23715,7 @@ class iMultiFab(FabArray_IArrayBox):
2367323715
If nghost == 0, only the valid region of each FArrayBox will be
2367423716
modified.
2367523717
"""
23718+
@typing.overload
2367623719
def subtract(
2367723720
self,
2367823721
src: iMultiFab,
@@ -23686,6 +23729,19 @@ class iMultiFab(FabArray_IArrayBox):
2368623729
The two MultiFabs MUST have the same underlying BoxArray.
2368723730
"""
2368823731
@typing.overload
23732+
def subtract(
23733+
self,
23734+
src: iMultiFab,
23735+
srccomp: typing.SupportsInt,
23736+
comp: typing.SupportsInt,
23737+
numcomp: typing.SupportsInt,
23738+
nghost: IntVect1D,
23739+
) -> None:
23740+
"""
23741+
Subtract src from self including nghost ghost cells.
23742+
The two MultiFabs MUST have the same underlying BoxArray.
23743+
"""
23744+
@typing.overload
2368923745
def sum(self, comp: typing.SupportsInt = 0, local: bool = False) -> int:
2369023746
"""
2369123747
Returns the sum of component 'comp' over the (i)MultiFab -- no ghost cells are included.
@@ -23697,6 +23753,34 @@ class iMultiFab(FabArray_IArrayBox):
2369723753
"""
2369823754
Returns the sum of component 'comp' in the given 'region'. -- no ghost cells are included.
2369923755
"""
23756+
@typing.overload
23757+
def swap(
23758+
self,
23759+
src: iMultiFab,
23760+
srccomp: typing.SupportsInt,
23761+
comp: typing.SupportsInt,
23762+
numcomp: typing.SupportsInt,
23763+
nghost: typing.SupportsInt,
23764+
) -> None:
23765+
"""
23766+
Swap from src to self including nghost ghost cells.
23767+
The two MultiFabs MUST have the same underlying BoxArray.
23768+
The swap is local.
23769+
"""
23770+
@typing.overload
23771+
def swap(
23772+
self,
23773+
src: iMultiFab,
23774+
srccomp: typing.SupportsInt,
23775+
comp: typing.SupportsInt,
23776+
numcomp: typing.SupportsInt,
23777+
nghost: IntVect1D,
23778+
) -> None:
23779+
"""
23780+
Swap from src to self including nghost ghost cells.
23781+
The two MultiFabs MUST have the same underlying BoxArray.
23782+
The swap is local.
23783+
"""
2370023784
def to_cupy(self, copy=False, order="F"):
2370123785
"""
2370223786

src/amrex/space2d/amrex_2d_pybind/__init__.pyi

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25680,6 +25680,7 @@ class iMultiFab(FabArray_IArrayBox):
2568025680
Input value to assign to the specified slice of the MultiFab
2568125681

2568225682
"""
25683+
@typing.overload
2568325684
def add(
2568425685
self,
2568525686
src: iMultiFab,
@@ -25692,6 +25693,19 @@ class iMultiFab(FabArray_IArrayBox):
2569225693
Add src to self including nghost ghost cells.
2569325694
The two MultiFabs MUST have the same underlying BoxArray.
2569425695
"""
25696+
@typing.overload
25697+
def add(
25698+
self,
25699+
src: iMultiFab,
25700+
srccomp: typing.SupportsInt,
25701+
comp: typing.SupportsInt,
25702+
numcomp: typing.SupportsInt,
25703+
nghost: IntVect2D,
25704+
) -> None:
25705+
"""
25706+
Add src to self including nghost ghost cells.
25707+
The two MultiFabs MUST have the same underlying BoxArray.
25708+
"""
2569525709
def box_array(self: FabArrayBase) -> BoxArray: ...
2569625710
def copy(self):
2569725711
"""
@@ -25738,6 +25752,7 @@ class iMultiFab(FabArray_IArrayBox):
2573825752
each FArrayBox will be modified. Note, nothing is done to protect
2573925753
against divide by zero.
2574025754
"""
25755+
@typing.overload
2574125756
def divide(
2574225757
self,
2574325758
src: iMultiFab,
@@ -25750,6 +25765,19 @@ class iMultiFab(FabArray_IArrayBox):
2575025765
Divide self by src including nghost ghost cells.
2575125766
The two MultiFabs MUST have the same underlying BoxArray.
2575225767
"""
25768+
@typing.overload
25769+
def divide(
25770+
self,
25771+
src: iMultiFab,
25772+
srccomp: typing.SupportsInt,
25773+
comp: typing.SupportsInt,
25774+
numcomp: typing.SupportsInt,
25775+
nghost: IntVect2D,
25776+
) -> None:
25777+
"""
25778+
Divide self by src including nghost ghost cells.
25779+
The two MultiFabs MUST have the same underlying BoxArray.
25780+
"""
2575325781
def dm(self: FabArrayBase) -> DistributionMapping: ...
2575425782
def imesh(self, idir, include_ghosts=False):
2575525783
"""
@@ -25882,6 +25910,7 @@ class iMultiFab(FabArray_IArrayBox):
2588225910
specifies the number of cells in the boundary region of each
2588325911
FArrayBox in the subregion that should be modified.
2588425912
"""
25913+
@typing.overload
2588525914
def multiply(
2588625915
self,
2588725916
src: iMultiFab,
@@ -25895,6 +25924,19 @@ class iMultiFab(FabArray_IArrayBox):
2589525924
The two MultiFabs MUST have the same underlying BoxArray.
2589625925
"""
2589725926
@typing.overload
25927+
def multiply(
25928+
self,
25929+
src: iMultiFab,
25930+
srccomp: typing.SupportsInt,
25931+
comp: typing.SupportsInt,
25932+
numcomp: typing.SupportsInt,
25933+
nghost: IntVect2D,
25934+
) -> None:
25935+
"""
25936+
Multiply self by src including nghost ghost cells.
25937+
The two MultiFabs MUST have the same underlying BoxArray.
25938+
"""
25939+
@typing.overload
2589825940
def negate(self, nghost: typing.SupportsInt = 0) -> None:
2589925941
"""
2590025942
Negates the value of each cell in the valid region of
@@ -26003,6 +26045,7 @@ class iMultiFab(FabArray_IArrayBox):
2600326045
If nghost == 0, only the valid region of each FArrayBox will be
2600426046
modified.
2600526047
"""
26048+
@typing.overload
2600626049
def subtract(
2600726050
self,
2600826051
src: iMultiFab,
@@ -26016,6 +26059,19 @@ class iMultiFab(FabArray_IArrayBox):
2601626059
The two MultiFabs MUST have the same underlying BoxArray.
2601726060
"""
2601826061
@typing.overload
26062+
def subtract(
26063+
self,
26064+
src: iMultiFab,
26065+
srccomp: typing.SupportsInt,
26066+
comp: typing.SupportsInt,
26067+
numcomp: typing.SupportsInt,
26068+
nghost: IntVect2D,
26069+
) -> None:
26070+
"""
26071+
Subtract src from self including nghost ghost cells.
26072+
The two MultiFabs MUST have the same underlying BoxArray.
26073+
"""
26074+
@typing.overload
2601926075
def sum(self, comp: typing.SupportsInt = 0, local: bool = False) -> int:
2602026076
"""
2602126077
Returns the sum of component 'comp' over the (i)MultiFab -- no ghost cells are included.
@@ -26027,6 +26083,34 @@ class iMultiFab(FabArray_IArrayBox):
2602726083
"""
2602826084
Returns the sum of component 'comp' in the given 'region'. -- no ghost cells are included.
2602926085
"""
26086+
@typing.overload
26087+
def swap(
26088+
self,
26089+
src: iMultiFab,
26090+
srccomp: typing.SupportsInt,
26091+
comp: typing.SupportsInt,
26092+
numcomp: typing.SupportsInt,
26093+
nghost: typing.SupportsInt,
26094+
) -> None:
26095+
"""
26096+
Swap from src to self including nghost ghost cells.
26097+
The two MultiFabs MUST have the same underlying BoxArray.
26098+
The swap is local.
26099+
"""
26100+
@typing.overload
26101+
def swap(
26102+
self,
26103+
src: iMultiFab,
26104+
srccomp: typing.SupportsInt,
26105+
comp: typing.SupportsInt,
26106+
numcomp: typing.SupportsInt,
26107+
nghost: IntVect2D,
26108+
) -> None:
26109+
"""
26110+
Swap from src to self including nghost ghost cells.
26111+
The two MultiFabs MUST have the same underlying BoxArray.
26112+
The swap is local.
26113+
"""
2603026114
def to_cupy(self, copy=False, order="F"):
2603126115
"""
2603226116

0 commit comments

Comments
 (0)