Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Jan 16, 2025

Tied to and should be merged after WEC-Sim/WEC-Sim#1401.
Fixes WEC-Sim/WEC-Sim#1400

@akeeste
Copy link
Contributor Author

akeeste commented Jan 23, 2025

@jtgrasb the moordyn test is now passing here too! The mooring matrix case is what fails the mooring test now

@akeeste
Copy link
Contributor Author

akeeste commented Jan 23, 2025

I ultimately chose to fix the passive yaw test by replacing the results that our regression test compares against because:

  • the passive yaw results are identical when using the previous linear interpolation instead of the current spline interpolation.
  • the current difference in results is extremely small. The regression test currently only allows a zero tolerance, which is likely more stringent than is warranted.
  • The spline vs linear interpolation in bodyClass.irrExcitation is the only source of difference, and we could argue this method is more accurate to interpolate against anyways

@dforbush2 Let me know if you disagree with this approach

comparison
zoomed_comparison

@dforbush2
Copy link
Contributor

dforbush2 commented Jan 23, 2025 via email

@akeeste akeeste requested a review from kmruehl January 29, 2025 15:26
@akeeste
Copy link
Contributor Author

akeeste commented Jan 29, 2025

@kmruehl assigning you for now since WEC-Sim/WEC-Sim#1401 is also assigned to you and it's for the same effort to resolve application bugs

@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

@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.

This PR looks good. I revised the tests to only test the R2024b version of MATLAB, and I'm waiting for the tests to pass to merge.

@kmruehl
Copy link
Collaborator

kmruehl commented Mar 1, 2025

@akeeste Mooring and Paraview tests are not yet passing, please work with @dforbush2 to resolve while I'm out.

@kmruehl kmruehl assigned dforbush2 and unassigned kmruehl Mar 1, 2025
@kmruehl kmruehl requested a review from dforbush2 March 1, 2025 05:21
@akeeste
Copy link
Contributor Author

akeeste commented Mar 6, 2025

The moordyn tests (mooring/moordyn and paraview/RM3) both fail sporadically, crashing MATLAB. The error is unintelligible and cannot be produced. Tests pass locally so I propose we just remove them and revisit those tests at a different time.

The Paraview/OSWEC accelerator build fails for some reason. I will dig into this again and hopefully get these tests finally working

@akeeste
Copy link
Contributor Author

akeeste commented Mar 6, 2025

@kmruehl what was the problem with the Paraview OSWEC slx file? It passed on R2023b but is failing now on R2024b. I get an warning that blocks were removed when it was exported from R2024a to R2023b (though it doesn't end up showing any for which that was the case). I don't have R2024b to test with.

@akeeste
Copy link
Contributor Author

akeeste commented Mar 6, 2025

@dforbush2 @kmruehl The runner is not working robustly. Paraview OSWEC works locally with R2024b. I propose we skip both paraview and moordyn tests for now so that we can finish the progress made here and move on.

@kmruehl
Copy link
Collaborator

kmruehl commented Mar 10, 2025

@akeeste I didn't change anything within the ParView OSWEC *.slx file, I only saved it with a newer version of MATLAB, since we were no longer testing the version of MATLAB.

@kmruehl
Copy link
Collaborator

kmruehl commented Mar 10, 2025

@akeeste I'm okay with removing those tests now if you've confirmed that they pass locally, and the issue is with the runner.

@kmruehl kmruehl removed the request for review from dforbush2 March 10, 2025 18:44
@kmruehl kmruehl assigned kmruehl and unassigned dforbush2 Mar 10, 2025
@akeeste
Copy link
Contributor Author

akeeste commented Mar 11, 2025

@kmruehl @dforbush2 I confirmed again this afternoon that all 3 of the breaking cases (Mooring/MoorDyn, Paraview OSWEC, Paraview RM3 MoorDyn) cases work locally with R2024b. I cannot easily separate the MooringMatrix test from the MoorDyn test so I skipped it too.

But in testing the MooringMatrix case locally I found that it is now not working🙃. It runs fine on normal and accelerator modes, but not rapid-accelerator. These bugs never end...

We could skip that one too--that would be easiest regardless, but we should be aware there may be problems with it.

@kmruehl
Copy link
Collaborator

kmruehl commented Mar 11, 2025

@akeeste I'm going to go ahead and merge this now to get the interim bug-fixes into main, however we can you pleas update the related issue to note the issues with MooringMatrix?

Thank you

@kmruehl kmruehl merged commit 03c12b0 into WEC-Sim:main Mar 11, 2025
1 check passed
@akeeste
Copy link
Contributor Author

akeeste commented Mar 12, 2025

FYI that MooringMatrix with rapid-accelerator did work locally (windows) with R2024a. rapid-accelerator issue might be specific to R2024b.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Applications breaking.

3 participants