diff --git a/CHANGELOG.md b/CHANGELOG.md index 345466ad..2e55d9c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ All notable changes to CableDyn are recorded in this file. The format follows ## [Unreleased] +### Fixed + +- The C API messages of `CableDyn_UpdatePointFluidFields` and `CableDyn_CalcOutputDerivatives` on + the coupled aggregate name its real scope: decks with finite-EI lines, bodies or rods. + ## [0.4.0] - 2026-11-04 ### Added diff --git a/python/tests/test_native_model.py b/python/tests/test_native_model.py index 9e8b1e61..6e2f7139 100644 --- a/python/tests/test_native_model.py +++ b/python/tests/test_native_model.py @@ -368,7 +368,7 @@ def test_rod_deck_steps_through_the_coupled_aggregate(tmp_path): with pytest.raises(CableDynError) as caught: m.step(0.01, q, np.zeros(3), np.zeros(3)) assert caught.value.status == 3 - with pytest.raises(CableDynError, match="BODIES or RODS"): + with pytest.raises(CableDynError, match="finite-EI lines, BODIES or RODS runs on"): npt = m.n_points m.update_point_fluid_fields(np.zeros(3 * npt), np.zeros(3 * npt), np.zeros(npt), 1025.0) diff --git a/src/CableDyn_CAPI.f90 b/src/CableDyn_CAPI.f90 index cea26b21..50b81519 100644 --- a/src/CableDyn_CAPI.f90 +++ b/src/CableDyn_CAPI.f90 @@ -1051,8 +1051,8 @@ SUBROUTINE CableDyn_UpdatePointFluidFields(handle, fluid_velocity_ptr, fluid_acc err_stat = validate_handle(handle, h) IF (err_stat /= CD_C_OK) RETURN IF (h%use_agg) THEN - CALL set_status(h, CD_C_BAD_INPUT, 'CableDyn_UpdatePointFluidFields: point fluid fields are not '// & - 'available on a deck with BODIES or RODS (still water)', err_stat) + CALL set_status(h, CD_C_BAD_INPUT, 'CableDyn_UpdatePointFluidFields: a deck with finite-EI lines, BODIES or '// & + 'RODS runs on the coupled aggregate, which takes no point fluid fields', err_stat) RETURN END IF IF (n_point < 0_C_INT) THEN @@ -1233,8 +1233,8 @@ SUBROUTINE CableDyn_CalcOutputDerivatives(handle, q_ptr, v_ptr, a_ptr, n_coupled CALL coupled_inputs(handle, q_ptr, v_ptr, a_ptr, n_coupled_dof, h, q_c, v_c, a_c, err_stat) IF (err_stat /= CD_C_OK) RETURN IF (h%use_agg) THEN - CALL set_status(h, CD_C_BAD_INPUT, 'CableDyn_CalcOutputDerivatives: load derivatives are not available on '// & - 'a deck with BODIES or RODS', err_stat) + CALL set_status(h, CD_C_BAD_INPUT, 'CableDyn_CalcOutputDerivatives: a deck with finite-EI lines, BODIES or '// & + 'RODS runs on the coupled aggregate, which has no load derivatives', err_stat) RETURN END IF IF (n_coupled_dof > 0_C_INT .AND. &