You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRuntimeException("Drift calculaton failed at time " + getTime(timeIndex - 1) + ". See cause for details.", e);
183
+
thrownewRuntimeException("Drift calculaton failed at time index " + timeIndex + " (time=" + getTime(timeIndex - 1) + ") . See cause of this exception for details.", e);
184
184
}
185
185
186
186
// Calculate new realization
@@ -228,12 +228,14 @@ public RandomVariableInterface call() {
228
228
* Optional multi-threadding (asyncronous calculation of the components)
229
229
*/
230
230
Future<RandomVariableInterface> result = null;
231
-
if(isUseMultiThreadding) {
232
-
result = executor.submit(worker);
233
-
} else {
234
-
try {
231
+
try {
232
+
if(isUseMultiThreadding) {
233
+
result = executor.submit(worker);
234
+
} else {
235
235
result = newFutureWrapper<>(worker.call());
236
-
} catch (Exceptione) {}
236
+
}
237
+
} catch (Exceptione) {
238
+
thrownewRuntimeException("Euler step failed at time index " + timeIndex + " (time=" + getTime(timeIndex) + "). See cause of this exception for details.", e);
237
239
}
238
240
239
241
// The following line will add the result of the calculation to the vector discreteProcessAtCurrentTimeIndex
@@ -250,11 +252,9 @@ public RandomVariableInterface call() {
thrownewRuntimeException("Euler step failed at time index " + timeIndex + " (time=" + getTime(timeIndex) + "). See cause of this exception for details.", e);
255
256
} catch (ExecutionExceptione) {
256
-
// TODO Auto-generated catch block
257
-
e.printStackTrace();
257
+
thrownewRuntimeException("Euler step failed at time index " + timeIndex + " (time=" + getTime(timeIndex) + "). See cause of this exception for details.", e);
258
258
}
259
259
}
260
260
@@ -294,7 +294,6 @@ public RandomVariableInterface call() {
thrownewRuntimeException("Drift calculaton failed at time " + getTime(timeIndex - 1), e);
183
+
thrownewRuntimeException("Drift calculaton failed at time index " + timeIndex + " (time=" + getTime(timeIndex - 1) + ") . See cause of this exception for details.", e);
@@ -229,12 +228,14 @@ public RandomVariableInterface call() throws SolverException {
229
228
* Optional multi-threadding (asyncronous calculation of the components)
230
229
*/
231
230
Future<RandomVariableInterface> result = null;
232
-
if(isUseMultiThreadding) {
233
-
result = executor.submit(worker);
234
-
} else {
235
-
try {
236
-
result = newFutureWrapper<RandomVariableInterface>(worker.call());
237
-
} catch (Exceptione) {}
231
+
try {
232
+
if(isUseMultiThreadding) {
233
+
result = executor.submit(worker);
234
+
} else {
235
+
result = newFutureWrapper<>(worker.call());
236
+
}
237
+
} catch (Exceptione) {
238
+
thrownewRuntimeException("Euler step failed at time index " + timeIndex + " (time=" + getTime(timeIndex) + "). See cause of this exception for details.", e);
238
239
}
239
240
240
241
// The following line will add the result of the calculation to the vector discreteProcessAtCurrentTimeIndex
@@ -251,11 +252,9 @@ public RandomVariableInterface call() throws SolverException {
thrownewRuntimeException("Euler step failed at time index " + timeIndex + " (time=" + getTime(timeIndex) + "). See cause of this exception for details.", e);
256
256
} catch (ExecutionExceptione) {
257
-
// TODO Auto-generated catch block
258
-
e.printStackTrace();
257
+
thrownewRuntimeException("Euler step failed at time index " + timeIndex + " (time=" + getTime(timeIndex) + "). See cause of this exception for details.", e);
259
258
}
260
259
}
261
260
@@ -295,7 +294,6 @@ public RandomVariableInterface call() throws SolverException {
0 commit comments