Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_native_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions src/CableDyn_CAPI.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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. &
Expand Down
Loading