From 8d9ce410d11b671d9207a8062f5249c23e387234 Mon Sep 17 00:00:00 2001 From: miettinen Date: Thu, 27 Jun 2013 11:14:58 +0000 Subject: [PATCH] Bugfix. (refs #4238) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27665 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/modelica/data/SimulationResult.java | 3 ++- .../simantics/sysdyn/adapter/distribution/IDistribution.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java b/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java index d4091285..96f1c5a3 100644 --- a/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java +++ b/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java @@ -461,13 +461,14 @@ public class SimulationResult { ds = new DataSet(variable, timesArray, resArray); try { for (DataSet tempds : variables){ - if (tempds.name.equals(variable)) + if (tempds.name.equals(variable)) { // We should never need to go there unless some change in // the logic of reading variables are made. // Also helps in seeking memory leaks. System.err.println("Find me and add a comment that I was printed, please."); // If it seems that in no case we need to go here, comment this try catch. return null; + } } } catch (ConcurrentModificationException e) { } diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/distribution/IDistribution.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/distribution/IDistribution.java index 760ed446..a0949854 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/distribution/IDistribution.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/distribution/IDistribution.java @@ -19,7 +19,7 @@ public interface IDistribution { * When random numbers are used to generate the Monte Carlo simulation parameters, the probability * is itself selected randomly (between (0,1); at the domain endpoints the value is undefined). * - * @param randomVariable + * @param probability * @return Inverse cumulative distribution function at probability, i.e. the random variable at the * point where the cumulative distribution function yields probability. */ -- 2.47.1