Skip to content

Commit

Permalink
Update Stub Files
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored and github-actions[bot] committed Aug 14, 2024
1 parent 620d1f3 commit 229a068
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/amrex/space1d/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ from amrex.space1d.amrex_1d_pybind import FabFactory_FArrayBox
from amrex.space1d.amrex_1d_pybind import Geometry
from amrex.space1d.amrex_1d_pybind import GeometryData
from amrex.space1d.amrex_1d_pybind import IndexType
from amrex.space1d.amrex_1d_pybind import IntVect1D
from amrex.space1d.amrex_1d_pybind import IntVect1D as IntVect
from amrex.space1d.amrex_1d_pybind import IntVect1D
from amrex.space1d.amrex_1d_pybind import IntVect2D
from amrex.space1d.amrex_1d_pybind import IntVect3D
from amrex.space1d.amrex_1d_pybind import MFInfo
Expand Down
2 changes: 1 addition & 1 deletion src/amrex/space2d/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ from amrex.space2d.amrex_2d_pybind import Geometry
from amrex.space2d.amrex_2d_pybind import GeometryData
from amrex.space2d.amrex_2d_pybind import IndexType
from amrex.space2d.amrex_2d_pybind import IntVect1D
from amrex.space2d.amrex_2d_pybind import IntVect2D as IntVect
from amrex.space2d.amrex_2d_pybind import IntVect2D
from amrex.space2d.amrex_2d_pybind import IntVect2D as IntVect
from amrex.space2d.amrex_2d_pybind import IntVect3D
from amrex.space2d.amrex_2d_pybind import MFInfo
from amrex.space2d.amrex_2d_pybind import MFItInfo
Expand Down
2 changes: 1 addition & 1 deletion src/amrex/space3d/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ from amrex.space3d.amrex_3d_pybind import GeometryData
from amrex.space3d.amrex_3d_pybind import IndexType
from amrex.space3d.amrex_3d_pybind import IntVect1D
from amrex.space3d.amrex_3d_pybind import IntVect2D
from amrex.space3d.amrex_3d_pybind import IntVect3D
from amrex.space3d.amrex_3d_pybind import IntVect3D as IntVect
from amrex.space3d.amrex_3d_pybind import IntVect3D
from amrex.space3d.amrex_3d_pybind import MFInfo
from amrex.space3d.amrex_3d_pybind import MFItInfo
from amrex.space3d.amrex_3d_pybind import MFIter
Expand Down
3 changes: 2 additions & 1 deletion tests/test_MPMD/test_1/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
# License: BSD-3-Clause-LBNL
# Authors: Bhargav Sriram Siddani, Revathi Jambunathan, Edoardo Zoni, Olga Shapoval, David Grote, Axel Huebl

import amrex.space3d as amr
from mpi4py import MPI

import amrex.space3d as amr

# Initialize amrex::MPMD to establish communication across the two apps
# However, leverage MPMD_Initialize_without_split
# so that communication split can be performed using mpi4py.MPI
Expand Down
3 changes: 2 additions & 1 deletion tests/test_aos.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np

import amrex.space3d as amr


def test_aos_init():
aos = amr.ArrayOfStructs_2_1_default()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_array4.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


def test_array4_empty():
empty = amr.Array4_double()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_basefab.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np

import amrex.space3d as amr


def test_basefab():
bf = amr.BaseFab_Real() # noqa
Expand Down
3 changes: 2 additions & 1 deletion tests/test_box.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


@pytest.fixture(scope="function")
def box():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_dim3.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np

import amrex.space3d as amr


def test_dim3():
obj = amr.Dim3(1, 2, 3)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_geometry.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr
from amrex.space3d import Geometry as Gm

# TODO: return coord?
Expand Down
3 changes: 2 additions & 1 deletion tests/test_indextype.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import pytest

import amrex.space3d as amr


@pytest.mark.skipif(amr.Config.spacedim != 1, reason="Requires AMREX_SPACEDIM = 1")
def test_indextype_1d():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_intvect.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


@pytest.mark.skipif(amr.Config.spacedim != 1, reason="Requires AMREX_SPACEDIM = 1")
def test_iv_1d():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_multifab.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import math

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


def test_mfab_numpy(mfab):
"""Used in docs/source/usage/compute.rst"""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_particle.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


def test_particle_init():
p1 = amr.Particle_8_0()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_particleContainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import importlib

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


@pytest.fixture()
def Npart():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_particleTile.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


##########
def test_ptile_data():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_periodicity.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import pytest

import amrex.space3d as amr


def test_periodicity():
obj = amr.Periodicity()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_plotfiledata.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


def write_test_plotfile(filename):
"""Write single-level plotfile (in order to read it back in)."""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_plotfileparticledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import shutil
from dataclasses import dataclass

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr

# Particle container constructor -- depending on if gpus are available use the
# GPU-enabled version. This uses the FHDeX Particle Container for the test
if amr.Config.have_gpu:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_realvect.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np
import pytest

import amrex.space3d as amr


def test_realvect_init():
rv = amr.RealVect()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_soa.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import amrex.space3d as amr
import numpy as np

import amrex.space3d as amr


def test_soa_init():
soa = amr.StructOfArrays_3_1_default()
Expand Down
3 changes: 2 additions & 1 deletion tools/plot_plotfile_2d.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import amrex.space2d as amr
import matplotlib.pyplot as plt
import numpy as np
import pytest

import amrex.space2d as amr


def plot_mf(arr, compname, plo, phi):
plt.plot()
Expand Down

0 comments on commit 229a068

Please sign in to comment.