diff --git a/vcell-core/src/main/java/org/vcell/solver/langevin/LangevinSolver.java b/vcell-core/src/main/java/org/vcell/solver/langevin/LangevinSolver.java index 1ccbb7fd29..da8f6597ee 100644 --- a/vcell-core/src/main/java/org/vcell/solver/langevin/LangevinSolver.java +++ b/vcell-core/src/main/java/org/vcell/solver/langevin/LangevinSolver.java @@ -198,9 +198,8 @@ protected String[] getMathExecutableCommand() { String localMessagingOption = "--vc-print-status"; int trialIndex; // run index - String simJobId = simTask.getSimulationJobID(); try { - trialIndex = Integer.parseInt(simJobId); + trialIndex = simTask.getSimulationJob().getTrialIndex().index; } catch(NumberFormatException e) { trialIndex = 0; }