FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
0430 — Remaining stdout diagnostics of the net force kernel and the net spec
ID 0430
Class ARCHITECTURE
Severity 1
Status ready

Models: —

Found: 2026-10-24 review of 7c147a4 (doc/reviews/fhsim_marine_elements-2026-10-24/), finding A10

Evidence

src/net/NetElement3NForces.h:384-388 prints "Bad element in nodeAforce_ned" (and B, C) to std::cout when a node force has a bad value; src/cable/subroutines/CableElBasics.cpp:437 does the same under _DEBUG; NetStructureSpec::PrintInfo prints counts and limits. They are the rest of MARE-0426.

Effect

A NaN in a panel force writes to stdout and the run goes on.

Possible fix

The force kernel has no logger. Return a flag from the kernel (or let the caller check the node forces) and report an error with the panel number.

Test that would prove it

A panel with a NaN node position ends the run with an error that names the panel.

Risk

The kernel is a template used in the Jacobian path; check the cost.