Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Oct 6, 2021

This PR adds the nlHydro flag to body masks, so that it can be used in the Run From Simulink feature.

Only rigid and flexible body masks changed. A single mask parameter (nlHydro) was added to each. Visibility callbacks updated to hide the nlHydro flag when a body is drag or nonhydro.

@akeeste akeeste added the Library updates to the WEC-Sim Library label Oct 6, 2021
@kmruehl kmruehl self-requested a review October 6, 2021 17:13
@kmruehl kmruehl force-pushed the runFromSim_nlHydro branch from 612d86d to caddb8d Compare October 6, 2021 23:06
@kmruehl
Copy link
Collaborator

kmruehl commented Oct 7, 2021

@akeeste after a lot of (frustrating) troubleshooting I determined the issue. While the source/lib/WEC-Sim/WECSim_Lib_Body_Elements.slx sub-library block was in the source directory, and had been updated correctly to include nonlinear hydro, for some reason none of the sub-library blocks were being called on from WECSim_Lib.slx. This resulted in the strange error saying there was no nonlinear hydro from the mask, when WECSim_Lib_Body_Elements.slx clearly included it... because the WECSim_Lib_Body_Elements.slx sub-library was never being used.

Turns out it was an easy fix was I was able to identify the issue. This must have been the result of a failed merged, possibly one that was done automatically. Anyway, we should be good now. Thank you!

@kmruehl kmruehl merged commit aa2eb15 into WEC-Sim:dev Oct 7, 2021
kmruehl added a commit that referenced this pull request Oct 7, 2021
@akeeste akeeste deleted the runFromSim_nlHydro branch October 8, 2021 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Library updates to the WEC-Sim Library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants