FloatingArrayDesign / MoorDyn

a lumped-mass mooring line model intended for coupling with floating structure codes
BSD 3-Clause "New" or "Revised" License
64 stars 37 forks source link

Add error checking in output options list #228

Closed RyanDavies19 closed 1 week ago

RyanDavies19 commented 1 week ago

If a user gives an output channel that has an incorrect object number, MD will seg fault. Example: requesting FairTen4 from a system with 3 lines.

Corresponds with: https://github.com/FloatingArrayDesign/MoorDyn/blob/0a9a8aac08b67f37cba4a0073c0d5250b9cc9a76/source/MoorDyn2.cpp#L1260

RyanDavies19 commented 1 week ago

Duplicate of #165