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

Functions on subdomains (WIP) #1380

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
tests: Update tolerance + add mpi fixme.
  • Loading branch information
rhodrin committed Sep 15, 2020
commit 536d8a18a45c0c9f8cdab8275fc0b934813f26df
4 changes: 3 additions & 1 deletion tests/test_subdomains.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ def define(self, dimensions):

assert(np.all(f.data[:] == 1))

# FIXME: Fix this for MPI
# @pytest.mark.parallel(mode=4)
def test_acoustic_on_sd(self):

class CompDom(SubDomain):
Expand Down Expand Up @@ -510,7 +512,7 @@ def define(self, dimensions):

op(time=time_range.num-1, dt=dt)

assert np.isclose(norm(rec), 436.39, atol=1e-2, rtol=0)
assert np.isclose(norm(rec), 436.3915, rtol=1.e-5)

@pytest.mark.parallel(mode=4)
def test_mixed_functions_mpi(self):
Expand Down