From 4526d1f1f04017049fd469ccfc919a527e0efc13 Mon Sep 17 00:00:00 2001 From: ss2098 Date: Mon, 8 Jun 2026 20:30:24 -0800 Subject: [PATCH] Fix units setup in vector projection Poisson test --- tests/test_1450_poisson_vector_projection.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_1450_poisson_vector_projection.py b/tests/test_1450_poisson_vector_projection.py index 65addf4b..3fdf39ee 100644 --- a/tests/test_1450_poisson_vector_projection.py +++ b/tests/test_1450_poisson_vector_projection.py @@ -64,6 +64,17 @@ def test_vector_projection_after_poisson(): def test_vector_projection_after_poisson_with_units(): + # Strict units mode requires reference quantities to be set before + # creating meshes or MeshVariables with units. + uw.reset_default_model() + model = uw.get_default_model() + model.set_reference_quantities( + domain_depth=uw.quantity(1.0, "m"), + plate_velocity=uw.quantity(1.0, "m/s"), + mantle_viscosity=uw.quantity(1.0, "Pa*s"), + temperature_difference=uw.quantity(1.0, "K"), + ) + """ Test that Vector_Projection works with unit-aware meshes after Poisson solve.