Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Jan 16, 2025

PR to address the bugs appearing in our applications cases, as described in #1400. Closes #1400

@kmruehl kmruehl self-assigned this Jan 29, 2025
@kmruehl kmruehl self-requested a review January 29, 2025 15:24
@akeeste akeeste marked this pull request as ready for review February 5, 2025 16:33
@akeeste
Copy link
Contributor Author

akeeste commented Feb 5, 2025

@kmruehl this is ready for review

* Updates the Ubuntu and Matlab versions
@akeeste akeeste added the Bug bug in WEC-Sim source, high priority label Feb 19, 2025
@akeeste akeeste mentioned this pull request Feb 20, 2025
8 tasks
@akeeste
Copy link
Contributor Author

akeeste commented Feb 25, 2025

@kmruehl any updates on the review for this PR?

Copy link
Collaborator

@kmruehl kmruehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akeeste can you respond to my comments? Thanks

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akeeste can you explain the differences made to the Body Library?

Copy link
Contributor

@dforbush2 dforbush2 Feb 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akeeste correct me but I think I have it:
The only difference is here, in the mask initialization functions of "Hydrodynamic Body/Wave Diffraction and Excitation Force Calculation"

image

Note the purple highlight is an insignificant whitespace difference. To my eye, this is a fine, but unnecessary, change and is OK to merge. These are the line routings in question:

image

I suspect this particular addition may be in preparation of the forthcoming change to excitation calculations with multiple sets of hydrodynamic data suggested in, #1394 , at which time explicitly specifying this routing will be more robust.

The only reason I suspect it works as-is is that the default behavior of the blocks will carry them in all cases where there is a single set of hydrobody data (i.e., the only extant subfield is hf1).

Short answer: this is an intentional and good change to the body library block that I suggest is merged.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @dforbush2

@kmruehl kmruehl added SCM source code mangagement and warnings Tests/CI related WEC-Sim tests or Continuous Integration labels Feb 27, 2025
@kmruehl
Copy link
Collaborator

kmruehl commented Mar 1, 2025

I'm going to amend the test cases to revert to the last four versions of MATLAB and then merge the PR

@kmruehl kmruehl merged commit 2617f86 into WEC-Sim:main Mar 1, 2025
10 checks passed
@kmruehl kmruehl linked an issue Mar 1, 2025 that may be closed by this pull request
@akeeste
Copy link
Contributor Author

akeeste commented Mar 3, 2025

@dforbush2 @kmruehl yes that change to the body library mask was in a previous bugfix and must have gotten dropped at some point during all the library changes in the latest release. The mask line is necessary for the multiple wave definitions to work with the variable hydro changes

@akeeste akeeste deleted the applicationFixes branch March 11, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug bug in WEC-Sim source, high priority SCM source code mangagement and warnings Tests/CI related WEC-Sim tests or Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Main branch failing for R2022a and R2022b on Ubuntu [BUG] Applications breaking.

4 participants