Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase MOST test tolerance #51

Merged
merged 3 commits into from
Dec 1, 2023
Merged

Conversation

jtgrasb
Copy link
Contributor

@jtgrasb jtgrasb commented Dec 1, 2023

Changing the tolerance of MOST tests to a relative tolerance and increasing the tolerance for the tower loads. The MOST tests seem to be failing due to numerical inconsistencies in the optimization result. This should fix the issue with the tests failing.

The difference occurs on the runner but not locally. It could be a difference between Linux and Windows OS but not sure how to test this.

@akeeste
Copy link
Contributor

akeeste commented Dec 1, 2023

Hey @jtgrasb
Interesting, it surprises me that this fails on the runner but not locally. It looks like the tests are passing now, which is sufficient for me.

If it comes up again, we can try saving the input files created by MOSTIO to the repo and updating the tests results based on those pre-processed files. That way the CI will just use the included files instead of rerunning them. This would at least indicate whether the numerical differences on the runner occur in the pre-processing stage or the simulation stage

@jtgrasb jtgrasb merged commit 836db93 into WEC-Sim:dev Dec 1, 2023
23 checks passed
@jtgrasb jtgrasb added the MOST Updates related to the WEC-Sim+MOST example label Dec 1, 2023
@jtgrasb jtgrasb changed the title Increase test tolerance Increase MOST test tolerance Dec 1, 2023
jtgrasb added a commit that referenced this pull request Dec 1, 2023
* Adding load mitigating controls and OWC (#39)

* Adding load mitigating controls

* adding OWC applications case example

* adding 2020b version

* adding hydroData source

* update readmes, linting

* adding OWC orifice data

* add h5 file, mod gitignore, add testOWC

* add LMC and OWC tests to CI

* add LMC and OWC tests

* remove R2020b simulink file, remove last LTI block

* remove extra library file

* fix some paths, toolboxes required by the tests

* fix issue from merging dev, remove paraview tests

* add OWC MCR case to tests

---------

Co-authored-by: akeeste <[email protected]>

* Common input files (#50)

* common RM3 hydroData and geometry

* common OSWEC hydroData and geometry files

* multiple wave headings

* update input files

* consolidate sphere hydrodata

* update input files

* revert nonlinear hydro files back to original

* fix tests

* remove outdated comments from input files

* Increase test tolerance (#51)

* Increase test tolerance

* Change to relative tolerances

* Increase relative tolerance for tower

* Update README.md (#52)

Co-authored-by: Kelley Ruehl <[email protected]>

---------

Co-authored-by: dforbush2 <[email protected]>
Co-authored-by: akeeste <[email protected]>
Co-authored-by: Adam Keester <[email protected]>
Co-authored-by: Kelley Ruehl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MOST Updates related to the WEC-Sim+MOST example
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants