Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Jul 12, 2024

This PR expands the regression tests to account for accuracy bugs in BEMIO functions.

Currently the regression tests run the RM3 model using the committed hydroData in examples/RM3/hydroData/rm3.h5.

If a BEMIO function is updated and runs functionally, but is inaccurate, the regression test will still pass because BEMIO is not being re-run. e.g. the tests here should have failed because the body cg, cb and volume were written incorrectly. The regression tests passed however because BEMIO is not rerun.

This update will not catch inaccuracies in:

  • readCAPYTAINE
  • readNEMOH
  • readAQWA

but it will catch issues in readWAMIT, radiationIRF, radiationIRFSS, excitationIRF, and writeBEMIOH5

@akeeste akeeste added the Tests/CI related WEC-Sim tests or Continuous Integration label Jul 12, 2024
@akeeste akeeste requested a review from kmruehl July 12, 2024 17:14
@akeeste akeeste self-assigned this Jul 12, 2024
@kmruehl kmruehl assigned kmruehl and unassigned akeeste Jul 24, 2024
@kmruehl kmruehl added the BEM/BEMIO related to BEMIO or BEM hydro data label Aug 21, 2024
bemio
cd(testCase.testDir);
end

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if this test is better suited for bemioTest.m, instead of the RM3 regression test. If there is an issue with BEMIO, it seems like we should test it in bemioTest.m. That also allows us to compare across BEM solvers, and to a prior solution.

Right now, we run the sphere cases in all BEM solvers, but it doesn't look like we compare the solutions. The sphere was chosen because it's a simple/fast case, but we could run the RM3 and compare the results to the uploaded h5, in the RM3 example.

@akeeste what do you think about this suggestion?

@kmruehl
Copy link
Collaborator

kmruehl commented Sep 4, 2024

Thanks @akeeste. Let's go ahead and merge this PR to resolve the immediate issue. BEMIO is not currently run for the regression tests, so if there are any updates to readWAMIT they do not trickle down to the regression test. This PR is a patch that resolve this issue. However, long-term we would like to add BEMIO regression tests that compare a prior BEMIO run for each BEM solver to a new run. This long-term solution has been added as a new project: https://github.com/orgs/WEC-Sim/projects/12/views/1?pane=issue&itemId=78629973/

@kmruehl kmruehl merged commit c50ef05 into WEC-Sim:dev Sep 4, 2024
@akeeste akeeste deleted the expand_regression_tests branch September 5, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BEM/BEMIO related to BEMIO or BEM hydro data Tests/CI related WEC-Sim tests or Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants