SNL-WaterPower / WecOptTool-MATLAB

WEC Design Optimization Toolbox
GNU General Public License v3.0
12 stars 9 forks source link

Faster NEMOH Tests #130

Closed H0R5E closed 4 years ago

H0R5E commented 4 years ago

Description

This PR speeds up tests that make repeated calls to NEMOH, by using the NEMOH call in class based test setup functions that allow the results to be shared between the tests. The tests are now 60% quicker than before (1:45 on my system). The example test is still quite slow, because the example is quite slow. I think I can add some efficiency to the plotting function in #62 by reusing previous NEMOH calls.

Fixes #110

test_results_old.pdf test_results_new.pdf

Checklist: