From 780e644dc538ed8efdb3fa0d3478e68af61fafa0 Mon Sep 17 00:00:00 2001 From: Eric Shi Date: Tue, 2 Jul 2024 22:44:05 -0700 Subject: [PATCH] Replace nnz with nnz_sync() in test_point_basis --- warp/tests/test_fem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warp/tests/test_fem.py b/warp/tests/test_fem.py index 0f6e4a0c9..036def142 100644 --- a/warp/tests/test_fem.py +++ b/warp/tests/test_fem.py @@ -1234,7 +1234,7 @@ def test_point_basis(test, device): mat = fem.integrate(vector_divergence_form, fields={"u": linear_test, "q": point_trial}, quadrature=pic) test.assertEqual(mat.nrow, 9) test.assertEqual(mat.ncol, 3) - test.assertEqual(mat.nnz, 12) + test.assertEqual(mat.nnz_sync(), 12) @fem.integrand @@ -1399,4 +1399,4 @@ class TestFemShapeFunctions(unittest.TestCase): if __name__ == "__main__": wp.clear_kernel_cache() - unittest.main(verbosity=2) + unittest.main(verbosity=2, failfast=True)