Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run serial vs parallel test on prisms without Numba #434

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions harmonica/tests/test_prism.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def test_prism_against_infinite_slab():
npt.assert_allclose(analytical, results[-1])


@run_only_with_numba
@pytest.mark.use_numba
def test_prisms_parallel_vs_serial():
"""
Check if the parallelized run returns the same results as the serial one
Expand All @@ -297,7 +297,7 @@ def test_prisms_parallel_vs_serial():
]
densities = [2000, 3000, 4000, 5000]
coordinates = vd.grid_coordinates(
region=(-100, 100, -100, 100), spacing=20, extra_coords=10
region=(-100, 100, -100, 100), shape=(3, 3), extra_coords=10
)
for field in ("potential", "g_z"):
result_parallel = prism_gravity(
Expand Down
Loading