From ffa34b8a7c7b2612c1d3b76659895dcb5e3a468b Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 5 Aug 2024 19:13:51 -0500 Subject: [PATCH] Re-add bcast_numpy_array on DOFArray This reverts ee1e2a2c04227d5f2dbb615e7979f24fb570e5e5 --- meshmode/dof_array.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meshmode/dof_array.py b/meshmode/dof_array.py index 491c40d3..8eebd252 100644 --- a/meshmode/dof_array.py +++ b/meshmode/dof_array.py @@ -71,6 +71,13 @@ @with_container_arithmetic( bcast_obj_array=True, rel_comparison=True, + + # Required for compatibility with mirgecom, for now. + # Example usage site: + # https://github.com/illinois-ceesd/mirgecom/blob/f5d0d97c41e8c8a05546b1d1a6a2979ec8ea3554/mirgecom/inviscid.py#L95 + # Will complain via warnings in arraycontext. Remove in 2025. + bcast_numpy_array=True, + bitwise=True, _cls_has_array_context_attr=True) class DOFArray: