Skip to content

Commit 06e01a6

Browse files
ChristophBodensteinChristophBodenstein
authored andcommitted
added eject before simulating local/distributed
1 parent a8a0a48 commit 06e01a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TimeNETOptimizationEnvironment/src/toe/simulation/SimulatorCachedLocal.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public void run() {
9797
support.log("Size of Remaining ParameterList is " + remainingParametersets.size(), typeOfLogLevel.INFO);
9898
//Find simulations that are not already simulated
9999
support.log("Will simulate " + remainingParametersets.size() + " local/distributed.", typeOfLogLevel.INFO);
100-
100+
if (support.isCancelEverything()) {
101+
return;
102+
}
101103
myLocalSimulator.initSimulator(remainingParametersets, false);
102104
//support.waitForEndOfSimulator(myLocalSimulator, support.getGlobalSimulationCounter(), support.DEFAULT_TIMEOUT);
103105

0 commit comments

Comments
 (0)