Skip to content

Commit 93043f5

Browse files
ax3lgithub-actions[bot]
authored andcommitted
Update Stub Files
1 parent 51f8cb3 commit 93043f5

File tree

4 files changed

+126
-0
lines changed

4 files changed

+126
-0
lines changed

src/amrex/space2d/__init__.pyi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ from amrex.space2d.amrex_2d_pybind import (
9595
Dim3,
9696
Direction,
9797
DistributionMapping,
98+
EB2_Build,
99+
EBFArrayBoxFactory,
100+
EBSupport,
98101
FabArray_FArrayBox,
99102
FabArray_IArrayBox,
100103
FabArrayBase,
@@ -324,6 +327,7 @@ from amrex.space2d.amrex_2d_pybind import (
324327
length,
325328
make_invalid,
326329
make_valid,
330+
makeEBFabFactory,
327331
max,
328332
min,
329333
pack_cpus,
@@ -385,6 +389,9 @@ __all__: list[str] = [
385389
"Dim3",
386390
"Direction",
387391
"DistributionMapping",
392+
"EB2_Build",
393+
"EBFArrayBoxFactory",
394+
"EBSupport",
388395
"Exact",
389396
"FArrayBox",
390397
"FabArrayBase",
@@ -603,6 +610,7 @@ __all__: list[str] = [
603610
"XDim3",
604611
"almost_equal",
605612
"amrex_2d_pybind",
613+
"basic",
606614
"begin",
607615
"coarsen",
608616
"concatenate",
@@ -611,6 +619,7 @@ __all__: list[str] = [
611619
"dtoh_memcpy",
612620
"end",
613621
"finalize",
622+
"full",
614623
"htod_memcpy",
615624
"iMultiFab",
616625
"initialize",
@@ -619,6 +628,7 @@ __all__: list[str] = [
619628
"is_valid",
620629
"lbound",
621630
"length",
631+
"makeEBFabFactory",
622632
"make_invalid",
623633
"make_valid",
624634
"max",
@@ -638,6 +648,7 @@ __all__: list[str] = [
638648
"ubound",
639649
"unpack_cpus",
640650
"unpack_ids",
651+
"volume",
641652
"write_single_level_plotfile",
642653
]
643654

@@ -657,3 +668,6 @@ Poisson: amrex_2d_pybind.GrowthStrategy # value = <GrowthStrategy.Poisson: 0>
657668
__author__: str = "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang"
658669
__license__: str = "BSD-3-Clause-LBNL"
659670
__version__: str = "25.11-15-g4dad1664d746"
671+
basic: amrex_2d_pybind.EBSupport # value = <EBSupport.basic: 1>
672+
full: amrex_2d_pybind.EBSupport # value = <EBSupport.full: 3>
673+
volume: amrex_2d_pybind.EBSupport # value = <EBSupport.volume: 2>

src/amrex/space2d/amrex_2d_pybind/__init__.pyi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ __all__: list[str] = [
9797
"Dim3",
9898
"Direction",
9999
"DistributionMapping",
100+
"EB2_Build",
101+
"EBFArrayBoxFactory",
102+
"EBSupport",
100103
"Exact",
101104
"FArrayBox",
102105
"FabArrayBase",
@@ -313,13 +316,15 @@ __all__: list[str] = [
313316
"VisMF",
314317
"XDim3",
315318
"almost_equal",
319+
"basic",
316320
"begin",
317321
"coarsen",
318322
"concatenate",
319323
"copy_mfab",
320324
"dtoh_memcpy",
321325
"end",
322326
"finalize",
327+
"full",
323328
"htod_memcpy",
324329
"iMultiFab",
325330
"initialize",
@@ -328,6 +333,7 @@ __all__: list[str] = [
328333
"is_valid",
329334
"lbound",
330335
"length",
336+
"makeEBFabFactory",
331337
"make_invalid",
332338
"make_valid",
333339
"max",
@@ -339,6 +345,7 @@ __all__: list[str] = [
339345
"ubound",
340346
"unpack_cpus",
341347
"unpack_ids",
348+
"volume",
342349
"write_single_level_plotfile",
343350
]
344351

@@ -5601,6 +5608,21 @@ class DistributionMapping:
56015608
@property
56025609
def size(self) -> int: ...
56035610

5611+
class EBFArrayBoxFactory(FabFactory_FArrayBox):
5612+
def getVolFrac(self) -> MultiFab:
5613+
"""
5614+
Return volume faction MultiFab
5615+
"""
5616+
5617+
class EBSupport(enum.Enum):
5618+
"""
5619+
An enumeration.
5620+
"""
5621+
5622+
basic: typing.ClassVar[EBSupport] # value = <EBSupport.basic: 1>
5623+
full: typing.ClassVar[EBSupport] # value = <EBSupport.full: 3>
5624+
volume: typing.ClassVar[EBSupport] # value = <EBSupport.volume: 2>
5625+
56045626
class FArrayBox(BaseFab_Real):
56055627
@typing.overload
56065628
def __init__(self) -> None: ...
@@ -26138,6 +26160,19 @@ def AlmostEqual(rb1: RealBox, rb2: RealBox, eps: typing.SupportsFloat = 0.0) ->
2613826160
Determine if two boxes are equal to within a tolerance
2613926161
"""
2614026162

26163+
def EB2_Build(
26164+
geom: Geometry,
26165+
required_coarsening_level: typing.SupportsInt,
26166+
max_coarsening_level: typing.SupportsInt,
26167+
ngrow: typing.SupportsInt = 4,
26168+
build_coarse_level_by_coarsening: bool = True,
26169+
extend_domain_face: bool = True,
26170+
num_coarsen_opt: typing.SupportsInt = 0,
26171+
) -> None:
26172+
"""
26173+
EB generation
26174+
"""
26175+
2614126176
def MPMD_AppNum() -> int: ...
2614226177
def MPMD_Finalize() -> None: ...
2614326178
def MPMD_Initialize_without_split(arg0: list) -> None: ...
@@ -26377,6 +26412,17 @@ def length(arg0: Array4_uint_const) -> Dim3: ...
2637726412
def length(arg0: Array4_ulong_const) -> Dim3: ...
2637826413
@typing.overload
2637926414
def length(arg0: Array4_ulonglong_const) -> Dim3: ...
26415+
def makeEBFabFactory(
26416+
geom: Geometry,
26417+
ba: BoxArray,
26418+
dm: DistributionMapping,
26419+
ngrow: Vector_int,
26420+
support: EBSupport,
26421+
) -> EBFArrayBoxFactory:
26422+
"""
26423+
Make EBFArrayBoxFactory for given Geometry, BoxArray and DistributionMapping
26424+
"""
26425+
2638026426
def make_invalid(arg0: typing.SupportsInt) -> int: ...
2638126427
def make_valid(arg0: typing.SupportsInt) -> int: ...
2638226428
def max(arg0: RealVect, arg1: RealVect) -> RealVect: ...
@@ -26482,4 +26528,7 @@ Poisson: GrowthStrategy # value = <GrowthStrategy.Poisson: 0>
2648226528
__author__: str = "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang"
2648326529
__license__: str = "BSD-3-Clause-LBNL"
2648426530
__version__: str = "25.11-15-g4dad1664d746"
26531+
basic: EBSupport # value = <EBSupport.basic: 1>
26532+
full: EBSupport # value = <EBSupport.full: 3>
26533+
volume: EBSupport # value = <EBSupport.volume: 2>
2648526534
IntVect = IntVect2D

src/amrex/space3d/__init__.pyi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ from amrex.space3d.amrex_3d_pybind import (
9595
Dim3,
9696
Direction,
9797
DistributionMapping,
98+
EB2_Build,
99+
EBFArrayBoxFactory,
100+
EBSupport,
98101
FabArray_FArrayBox,
99102
FabArray_IArrayBox,
100103
FabArrayBase,
@@ -300,6 +303,7 @@ from amrex.space3d.amrex_3d_pybind import (
300303
length,
301304
make_invalid,
302305
make_valid,
306+
makeEBFabFactory,
303307
max,
304308
min,
305309
pack_cpus,
@@ -361,6 +365,9 @@ __all__: list[str] = [
361365
"Dim3",
362366
"Direction",
363367
"DistributionMapping",
368+
"EB2_Build",
369+
"EBFArrayBoxFactory",
370+
"EBSupport",
364371
"Exact",
365372
"FArrayBox",
366373
"FabArrayBase",
@@ -555,6 +562,7 @@ __all__: list[str] = [
555562
"XDim3",
556563
"almost_equal",
557564
"amrex_3d_pybind",
565+
"basic",
558566
"begin",
559567
"coarsen",
560568
"concatenate",
@@ -563,6 +571,7 @@ __all__: list[str] = [
563571
"dtoh_memcpy",
564572
"end",
565573
"finalize",
574+
"full",
566575
"htod_memcpy",
567576
"iMultiFab",
568577
"initialize",
@@ -571,6 +580,7 @@ __all__: list[str] = [
571580
"is_valid",
572581
"lbound",
573582
"length",
583+
"makeEBFabFactory",
574584
"make_invalid",
575585
"make_valid",
576586
"max",
@@ -590,6 +600,7 @@ __all__: list[str] = [
590600
"ubound",
591601
"unpack_cpus",
592602
"unpack_ids",
603+
"volume",
593604
"write_single_level_plotfile",
594605
]
595606

@@ -609,3 +620,6 @@ Poisson: amrex_3d_pybind.GrowthStrategy # value = <GrowthStrategy.Poisson: 0>
609620
__author__: str = "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang"
610621
__license__: str = "BSD-3-Clause-LBNL"
611622
__version__: str = "25.11-15-g4dad1664d746"
623+
basic: amrex_3d_pybind.EBSupport # value = <EBSupport.basic: 1>
624+
full: amrex_3d_pybind.EBSupport # value = <EBSupport.full: 3>
625+
volume: amrex_3d_pybind.EBSupport # value = <EBSupport.volume: 2>

src/amrex/space3d/amrex_3d_pybind/__init__.pyi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ __all__: list[str] = [
9797
"Dim3",
9898
"Direction",
9999
"DistributionMapping",
100+
"EB2_Build",
101+
"EBFArrayBoxFactory",
102+
"EBSupport",
100103
"Exact",
101104
"FArrayBox",
102105
"FabArrayBase",
@@ -289,13 +292,15 @@ __all__: list[str] = [
289292
"VisMF",
290293
"XDim3",
291294
"almost_equal",
295+
"basic",
292296
"begin",
293297
"coarsen",
294298
"concatenate",
295299
"copy_mfab",
296300
"dtoh_memcpy",
297301
"end",
298302
"finalize",
303+
"full",
299304
"htod_memcpy",
300305
"iMultiFab",
301306
"initialize",
@@ -304,6 +309,7 @@ __all__: list[str] = [
304309
"is_valid",
305310
"lbound",
306311
"length",
312+
"makeEBFabFactory",
307313
"make_invalid",
308314
"make_valid",
309315
"max",
@@ -315,6 +321,7 @@ __all__: list[str] = [
315321
"ubound",
316322
"unpack_cpus",
317323
"unpack_ids",
324+
"volume",
318325
"write_single_level_plotfile",
319326
]
320327

@@ -5577,6 +5584,21 @@ class DistributionMapping:
55775584
@property
55785585
def size(self) -> int: ...
55795586

5587+
class EBFArrayBoxFactory(FabFactory_FArrayBox):
5588+
def getVolFrac(self) -> MultiFab:
5589+
"""
5590+
Return volume faction MultiFab
5591+
"""
5592+
5593+
class EBSupport(enum.Enum):
5594+
"""
5595+
An enumeration.
5596+
"""
5597+
5598+
basic: typing.ClassVar[EBSupport] # value = <EBSupport.basic: 1>
5599+
full: typing.ClassVar[EBSupport] # value = <EBSupport.full: 3>
5600+
volume: typing.ClassVar[EBSupport] # value = <EBSupport.volume: 2>
5601+
55805602
class FArrayBox(BaseFab_Real):
55815603
@typing.overload
55825604
def __init__(self) -> None: ...
@@ -24008,6 +24030,19 @@ def AlmostEqual(rb1: RealBox, rb2: RealBox, eps: typing.SupportsFloat = 0.0) ->
2400824030
Determine if two boxes are equal to within a tolerance
2400924031
"""
2401024032

24033+
def EB2_Build(
24034+
geom: Geometry,
24035+
required_coarsening_level: typing.SupportsInt,
24036+
max_coarsening_level: typing.SupportsInt,
24037+
ngrow: typing.SupportsInt = 4,
24038+
build_coarse_level_by_coarsening: bool = True,
24039+
extend_domain_face: bool = True,
24040+
num_coarsen_opt: typing.SupportsInt = 0,
24041+
) -> None:
24042+
"""
24043+
EB generation
24044+
"""
24045+
2401124046
def MPMD_AppNum() -> int: ...
2401224047
def MPMD_Finalize() -> None: ...
2401324048
def MPMD_Initialize_without_split(arg0: list) -> None: ...
@@ -24247,6 +24282,17 @@ def length(arg0: Array4_uint_const) -> Dim3: ...
2424724282
def length(arg0: Array4_ulong_const) -> Dim3: ...
2424824283
@typing.overload
2424924284
def length(arg0: Array4_ulonglong_const) -> Dim3: ...
24285+
def makeEBFabFactory(
24286+
geom: Geometry,
24287+
ba: BoxArray,
24288+
dm: DistributionMapping,
24289+
ngrow: Vector_int,
24290+
support: EBSupport,
24291+
) -> EBFArrayBoxFactory:
24292+
"""
24293+
Make EBFArrayBoxFactory for given Geometry, BoxArray and DistributionMapping
24294+
"""
24295+
2425024296
def make_invalid(arg0: typing.SupportsInt) -> int: ...
2425124297
def make_valid(arg0: typing.SupportsInt) -> int: ...
2425224298
def max(arg0: RealVect, arg1: RealVect) -> RealVect: ...
@@ -24352,4 +24398,7 @@ Poisson: GrowthStrategy # value = <GrowthStrategy.Poisson: 0>
2435224398
__author__: str = "Axel Huebl, Ryan T. Sandberg, Shreyas Ananthan, David P. Grote, Revathi Jambunathan, Edoardo Zoni, Remi Lehe, Andrew Myers, Weiqun Zhang"
2435324399
__license__: str = "BSD-3-Clause-LBNL"
2435424400
__version__: str = "25.11-15-g4dad1664d746"
24401+
basic: EBSupport # value = <EBSupport.basic: 1>
24402+
full: EBSupport # value = <EBSupport.full: 3>
24403+
volume: EBSupport # value = <EBSupport.volume: 2>
2435524404
IntVect = IntVect3D

0 commit comments

Comments
 (0)