]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #4765
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 19 May 2014 10:50:52 +0000 (10:50 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 19 May 2014 10:50:52 +0000 (10:50 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29516 ac1ea38d-2e2b-0410-8846-a27921b304fc

fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Environment.java

index ec45489177519d10e232b31956fe1b330c61d90d..45a81b76a335fd2eec9266c72834c5eb97194078 100644 (file)
@@ -499,7 +499,7 @@ final public class Environment implements IEnvironment, ISystem {
 \r
                for(Map.Entry<String,VariableBase> entry : model.copies.entrySet()) {\r
                        VariableBase base = entry.getValue();\r
-                       if(!used.add(base.name)) continue;\r
+                       if(!used.add(entry.getKey())) continue;\r
                        for(int index=0;index<base.dimension();index++)\r
                                valueArray[offset++] = (Double)getValue(base.index(this, null)+index);\r
                }\r