Skip to content

Commit e8cacc3

Browse files
authored
Fix timeout in OWC MCR test on windows runners (#75)
* Reduce number of cases in OWC mcr run to avoid timeout on windows runner. * Format README
1 parent df5e04b commit e8cacc3

3 files changed

Lines changed: 20 additions & 23 deletions

File tree

OWC/OrificeModel/TestOWC.m

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
classdef TestOWC < matlab.unittest.TestCase
2-
2+
33
properties
44
OriginalDefault
55
testDir
66
h5Dir = 'hydroData'
77
h5Name = 'test17a.h5'
88
end
9-
9+
1010
methods (Access = 'public')
1111
function obj = TestOWC
1212
obj.testDir = fileparts(mfilename('fullpath'));
1313
end
1414
end
15-
15+
1616
methods (TestMethodSetup)
1717
function killPlots (~)
1818
set(0,'DefaultFigureVisible','off');
1919
end
2020
end
2121

22-
methods(TestClassSetup)
22+
methods(TestClassSetup)
2323
function captureVisibility(testCase)
2424
testCase.OriginalDefault = get(0,'DefaultFigureVisible');
25-
end
26-
function runBemio(testCase)
25+
end
26+
function runBemio(testCase)
2727
cd(testCase.h5Dir);
2828
if isfile(testCase.h5Name)
2929
fprintf('runBemio skipped, *.h5 already exists\n')
3030
else
3131
bemio
3232
end
33-
cd(testCase.testDir)
34-
end
33+
cd(testCase.testDir)
34+
end
3535
end
3636

3737
methods(TestMethodTeardown)
@@ -40,11 +40,11 @@ function returnHome(testCase)
4040
end
4141
end
4242

43-
methods(TestClassTeardown)
43+
methods(TestClassTeardown)
4444
function checkVisibilityRestored(testCase)
4545
set(0,'DefaultFigureVisible',testCase.OriginalDefault);
4646
testCase.assertEqual(get(0,'DefaultFigureVisible'), ...
47-
testCase.OriginalDefault);
47+
testCase.OriginalDefault);
4848
end
4949
end
5050

OWC/OrificeModel/mcrOrifice.mat

-5 Bytes
Binary file not shown.

OWC/README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
# Oscillating Water Column
22

3-
**Author:** Dominic Forbush
3+
**Author:** Dominic Forbush
44

5-
**Version:** WEC-Sim v5.0
5+
**Version:** WEC-Sim v5.0
66

7-
**Geometry** Cylinder Moonpool, WAMIT Test 17 geometry
7+
**Geometry:** Cylinder Moonpool, WAMIT Test 17 geometry
88

9-
**Dependencies:**
9+
**Dependencies:** Control System Toolbox --> for tf() function
1010

11-
Control System Toolbox --> for tf() function
11+
OWC example modeling an orifice for a floating body cylindrical OWC. Body has a
12+
broken link to couple the GBM mode representing the heaving free surface to the
13+
rigid body heave mode. Intended to demonstrate ways user can modify library
14+
blocks to meet OWC modeling needs.
1215

13-
OWC example modeling an orifice for a floating body cylindrical OWC.
14-
Body has a broken link to couple the GBM mode representing the heaving
15-
free surface to the rigid body heave mode.
16-
Intended to demonstrate ways user can modify library blocks to
17-
meet OWC modeling needs.
18-
19-
Run wecSimMCR for orifice area study in mcrOrifice.mat
20-
which will work with the userDefinedFunctions.m
16+
Run wecSimMCR for orifice area study in mcrOrifice.mat which will work with the
17+
userDefinedFunctions.m

0 commit comments

Comments
 (0)