Skip to content

Commit

Permalink
Merge branch 'ershi/fix-test-point-basis-failure' into 'main'
Browse files Browse the repository at this point in the history
Replace nnz with nnz_sync() in test_point_basis

See merge request omniverse/warp!601
  • Loading branch information
shi-eric committed Jul 3, 2024
2 parents 2e45f1b + 780e644 commit 6f0ff2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warp/tests/test_fem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 6f0ff2b

Please sign in to comment.