FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
0470 — Net panels with the screen added mass cost about 10 % more per step in long runs
ID 0470
Class KNOWN-LIMITATION
Severity 1
Status ready

Models: Net/NetStructure

Found: 2026-11-26, plan MF2 (me-fish-round2) timing runs. Class is performance; the legend has no such class.

Evidence

Deck: fishery SteadyTow twine cross-flow (432fbe7), integrator RK45_i, StepMax 0.03, 400 s. Step counts are identical in both runs (about 5120 steps per simulated second, steps of 0.18 to 0.22 ms, a stability limit). Wall time per step is about 1.8 ms at the baseline (ME ed1c4b9, coribo e40d561, env 0d1cc5a) and about 2.0 ms at local main (ME 3f0b1da9, coribo 6e8c775).

Cumulative wall time in s at simulated time 50 / 100 / 150 / 200 / 250 s:

Run 50 100 150 200 250
A (baseline) 445 915 1388 1860 2341
B (local main) 488 1006 1523 2047 2725

After 250 s the machine was loaded, so B at 250 s is not clean. The bisect window of 0 to 10 s showed only 3 % after ME 3fb0b22.

Data: /tmp/claude-1000/-home-karlr--work-fhsim-workspace/ca90a050-0acc-40ba-b2ba-d2b02bc6d4a0/scratchpad/me-fish-round2/timing/ and bisect/ (scratch, may be gone).

Effect

Long net runs take about 10 % more wall time. Results are unchanged.

Possible fix

Suspects: per-OdeFcn screen-mass and panel-geometry work (UpdatePanelGeometry, UpdateScreenMass, the 3x3 node solve) and the converged coribo solve (MARE-0469). Profile one step with callgrind first. Cache the panel geometry when the node positions did not change between calls.

Test that would prove it

A callgrind instruction count of one SteadyTow step, before and after.

Risk

Low. A cache must not change results (bit for bit with the current output).