Skip to content

Commit 7f6f2c9

Browse files
committed
Close models without saving
1 parent 5a5a6e4 commit 7f6f2c9

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

Mooring/TestMooring.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ function testMoorDyn(testCase)
5656
"MoorDyn is not installed");
5757
cd MoorDyn
5858
wecSim
59-
close_system('RM3MoorDyn')
59+
close_system('RM3MoorDyn',0)
6060
cd(testCase.testDir)
6161
end
6262
function testMooringMatrix(testCase)
6363
cd MooringMatrix
6464
wecSim
65-
close_system('RM3MooringMatrix')
65+
close_system('RM3MooringMatrix',0)
6666
cd(testCase.testDir)
6767
end
6868
end

Morison_Element/TestMorisonElement.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ function checkVisibilityRestored(testCase)
5353
function testMorisonElement(testCase)
5454
cd('morisonElement')
5555
wecSim
56-
close_system('monopile')
56+
close_system('monopile',0)
5757
cd(testCase.testDir)
5858
end
5959
function testMonopile(testCase)
6060
cd('monopile')
6161
wecSim
62-
close_system('monopile')
62+
close_system('monopile',0)
6363
cd(testCase.testDir)
6464
end
6565
end

Multiple_Condition_Runs/TestMultipleConditionRuns.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@ function checkVisibilityRestored(testCase)
5353
function testRM3_MCROPT1(testCase)
5454
cd RM3_MCROPT1
5555
wecSimMCR
56-
close_system('RM3')
56+
close_system('RM3',0)
5757
end
5858
function testRM3_MCROPT2(testCase)
5959
cd RM3_MCROPT2
6060
wecSimMCR
61-
close_system('RM3')
61+
close_system('RM3',0)
6262
end
6363
function testRM3_MCROPT3(testCase)
6464
cd RM3_MCROPT3
6565
wecSimMCR
66-
close_system('RM3')
66+
close_system('RM3',0)
6767
end
6868
function testRM3_MCROPT3_SeaState(testCase)
6969
cd RM3_MCROPT3_SeaState
7070
wecSimMCR
71-
close_system('RM3')
71+
close_system('RM3',0)
7272
end
7373
end
7474
end

Nonlinear_Hydro/TestNonlinearHydro.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@ function checkVisibilityRestored(testCase)
5353
function testNonlinear_Hydro_ode4_Regular(testCase)
5454
cd(fullfile('ode4', 'Regular'))
5555
wecSim
56-
close_system('ellipsoid')
56+
close_system('ellipsoid',0)
5757
end
5858
function testNonlinear_Hydro_ode4_RegularCIC(testCase)
5959
cd(fullfile('ode4', 'RegularCIC'))
6060
wecSim
61-
close_system('ellipsoid')
61+
close_system('ellipsoid',0)
6262
end
6363
function testNonlinear_Hydro_ode45_Regular(testCase)
6464
cd(fullfile('ode45', 'Regular'))
6565
wecSim
66-
close_system('ellipsoid')
66+
close_system('ellipsoid',0)
6767
end
6868
function testNonlinear_Hydro_ode45_RegularCIC(testCase)
6969
cd(fullfile('ode45', 'RegularCIC'))
7070
wecSim
71-
close_system('ellipsoid')
71+
close_system('ellipsoid',0)
7272
end
7373
end
7474
end

Passive_Yaw/TestPassiveYaw.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ function checkVisibilityRestored(testCase)
5353
function testPassiveYawOFF(testCase)
5454
cd('PassiveYawOFF')
5555
wecSim
56-
close_system('OSWEC')
56+
close_system('OSWEC',0)
5757
end
5858
function testPassiveYawON(testCase)
5959
cd('PassiveYawON')
6060
wecSim
61-
close_system('OSWEC')
61+
close_system('OSWEC',0)
6262
end
6363
end
6464
end

RM3_PTO_Extension/TestRM3PTOExtension.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ function checkVisibilityRestored(testCase)
5353
function testRM3_PTO_Extension_float(testCase)
5454
cd('float')
5555
wecSim
56-
close_system('RM3')
56+
close_system('RM3',0)
5757
cd(testCase.testDir)
5858
end
5959
function testRM3_PTO_Extension_spar(testCase)
6060
cd('spar')
6161
wecSim
62-
close_system('RM3')
62+
close_system('RM3',0)
6363
cd(testCase.testDir)
6464
end
6565
end

Variable_Hydro/TestVariableHydro.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ function checkVisibilityRestored(testCase)
6969
function testPY(testCase)
7070
cd('Passive_Yaw')
7171
runCases
72-
close_system('OSWEC')
72+
close_system('OSWEC',0)
7373
end
7474
function testVM(testCase)
7575
cd('Variable_Mass')
7676
wecSim
77-
close_system('OSWEC')
77+
close_system('OSWEC',0)
7878
end
7979
end
8080

WECCCOMP/TestWECCCOMP.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ function checkVisibilityRestored(testCase)
5858
function testWECCCOMP_Fault(testCase)
5959
cd('WECCCOMP_Fault_Implementation')
6060
wecSim
61-
close_system('WaveStar')
61+
close_system('WaveStar',0)
6262
end
6363
function testWECCCOMP_MPC(testCase)
6464
cd('WECCCOMP_Nonlinear_Model_Predictive')
6565
wecSim
66-
close_system('WaveStar')
66+
close_system('WaveStar',0)
6767
end
6868
end
6969
end

0 commit comments

Comments
 (0)