From 2197b05f870b53a723520fe7eb901d2569c36050 Mon Sep 17 00:00:00 2001 From: Mike Campbell Date: Mon, 13 Jul 2020 19:46:26 -0500 Subject: [PATCH] Update test/test_meshmode.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andreas Klöckner --- test/test_meshmode.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/test_meshmode.py b/test/test_meshmode.py index 0fef9d3e..e6312f55 100644 --- a/test/test_meshmode.py +++ b/test/test_meshmode.py @@ -1478,18 +1478,6 @@ def test_array_context_np_workalike(ctx_factory): assert np.allclose(actx_result, ref_result) - n_args = 2 - args = [np.random.randn(discr.ndofs) for i in range(n_args)] - ref_result = np.where(((args[0] - args[1]) > 0), args[0], args[1]) - - actx_args = [unflatten(actx, discr, actx.from_numpy(arg)) for arg in args] - actx_cond = actx.from_numpy((args[0] - args[1]) > 0) - actx_result = actx.to_numpy(flatten(actx.np.where(actx_cond, - actx_args[0], - actx_args[1]))) - - assert np.allclose(actx_result, ref_result) - if __name__ == "__main__": import sys -- GitLab