Skip to content

Commit

Permalink
Update Stub Files
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored and github-actions[bot] committed Nov 1, 2024
1 parent 6c2dc4f commit e830c1e
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amrex/space1d/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ amrex
StructOfArrays
Utility
Vector
VisMF
"""

Expand Down Expand Up @@ -261,6 +262,7 @@ from amrex.space1d.amrex_1d_pybind import (
Vector_Long,
Vector_Real,
Vector_string,
VisMF,
XDim3,
begin,
coarsen,
Expand Down Expand Up @@ -508,6 +510,7 @@ __all__ = [
"Vector_Real",
"Vector_int",
"Vector_string",
"VisMF",
"XDim3",
"amrex_1d_pybind",
"begin",
Expand Down
21 changes: 21 additions & 0 deletions src/amrex/space1d/amrex_1d_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ amrex
StructOfArrays
Utility
Vector
VisMF

"""

Expand Down Expand Up @@ -261,6 +262,7 @@ __all__ = [
"Vector_Real",
"Vector_int",
"Vector_string",
"VisMF",
"XDim3",
"begin",
"coarsen",
Expand Down Expand Up @@ -18050,6 +18052,25 @@ class Vector_string:
"""
def size(self) -> int: ...

class VisMF:
@staticmethod
@typing.overload
def Read(name: str) -> MultiFab:
"""
Reads a MultiFab from the specified file
"""
@staticmethod
@typing.overload
def Read(name: str, mf: MultiFab) -> None:
"""
Reads a MultiFab from the specified file into the given MultiFab. The BoxArray on the disk must match the BoxArray * in mf
"""
@staticmethod
def Write(mf: FabArray_FArrayBox, name: str) -> int:
"""
Writes a Multifab to the specified file
"""

class XDim3:
x: float
y: float
Expand Down
3 changes: 3 additions & 0 deletions src/amrex/space2d/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ amrex
StructOfArrays
Utility
Vector
VisMF
"""

Expand Down Expand Up @@ -285,6 +286,7 @@ from amrex.space2d.amrex_2d_pybind import (
Vector_Long,
Vector_Real,
Vector_string,
VisMF,
XDim3,
begin,
coarsen,
Expand Down Expand Up @@ -556,6 +558,7 @@ __all__ = [
"Vector_Real",
"Vector_int",
"Vector_string",
"VisMF",
"XDim3",
"amrex_2d_pybind",
"begin",
Expand Down
21 changes: 21 additions & 0 deletions src/amrex/space2d/amrex_2d_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ amrex
StructOfArrays
Utility
Vector
VisMF

"""

Expand Down Expand Up @@ -285,6 +286,7 @@ __all__ = [
"Vector_Real",
"Vector_int",
"Vector_string",
"VisMF",
"XDim3",
"begin",
"coarsen",
Expand Down Expand Up @@ -19868,6 +19870,25 @@ class Vector_string:
"""
def size(self) -> int: ...

class VisMF:
@staticmethod
@typing.overload
def Read(name: str) -> MultiFab:
"""
Reads a MultiFab from the specified file
"""
@staticmethod
@typing.overload
def Read(name: str, mf: MultiFab) -> None:
"""
Reads a MultiFab from the specified file into the given MultiFab. The BoxArray on the disk must match the BoxArray * in mf
"""
@staticmethod
def Write(mf: FabArray_FArrayBox, name: str) -> int:
"""
Writes a Multifab to the specified file
"""

class XDim3:
x: float
y: float
Expand Down
3 changes: 3 additions & 0 deletions src/amrex/space3d/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ amrex
StructOfArrays
Utility
Vector
VisMF
"""

Expand Down Expand Up @@ -261,6 +262,7 @@ from amrex.space3d.amrex_3d_pybind import (
Vector_Long,
Vector_Real,
Vector_string,
VisMF,
XDim3,
begin,
coarsen,
Expand Down Expand Up @@ -508,6 +510,7 @@ __all__ = [
"Vector_Real",
"Vector_int",
"Vector_string",
"VisMF",
"XDim3",
"amrex_3d_pybind",
"begin",
Expand Down
21 changes: 21 additions & 0 deletions src/amrex/space3d/amrex_3d_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ amrex
StructOfArrays
Utility
Vector
VisMF

"""

Expand Down Expand Up @@ -261,6 +262,7 @@ __all__ = [
"Vector_Real",
"Vector_int",
"Vector_string",
"VisMF",
"XDim3",
"begin",
"coarsen",
Expand Down Expand Up @@ -18083,6 +18085,25 @@ class Vector_string:
"""
def size(self) -> int: ...

class VisMF:
@staticmethod
@typing.overload
def Read(name: str) -> MultiFab:
"""
Reads a MultiFab from the specified file
"""
@staticmethod
@typing.overload
def Read(name: str, mf: MultiFab) -> None:
"""
Reads a MultiFab from the specified file into the given MultiFab. The BoxArray on the disk must match the BoxArray * in mf
"""
@staticmethod
def Write(mf: FabArray_FArrayBox, name: str) -> int:
"""
Writes a Multifab to the specified file
"""

class XDim3:
x: float
y: float
Expand Down

0 comments on commit e830c1e

Please sign in to comment.