]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixing Sheet Ranges
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 28 Oct 2011 09:16:29 +0000 (09:16 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 28 Oct 2011 09:16:29 +0000 (09:16 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@23085 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java

index 9571a06538c067d0b8a51a0ad613984ddc018668..00fcf7cc08a283485335df38d9d556c08626137f 100644 (file)
@@ -116,7 +116,7 @@ public class Sheet extends org.simantics.sysdyn.representation.Variable {
                            \r
                             if(array[0].length > 1) {\r
                                 // Has two dimensions     \r
-                                clazz.append("Real[" + array.length + ", " + array[0].length + "] ");\r
+                                clazz.append("constant Real[" + array.length + ", " + array[0].length + "] ");\r
                                 clazz.append(possibleRange.replace(":", "_") + " = {");\r
                                 for(int i = 0; i < array.length; i++) {\r
                                     clazz.append("{");\r
@@ -132,7 +132,7 @@ public class Sheet extends org.simantics.sysdyn.representation.Variable {
                                 clazz.append("};\n");\r
                             } else {\r
                                 // Has one dimension\r
-                                clazz.append("Real[" + array.length + "] ");\r
+                                clazz.append("constant Real[" + array.length + "] ");\r
                                 clazz.append(possibleRange.replace(":", "_") + " = {");\r
                                 for(int i = 0; i < array.length; i++) {\r
                                     clazz.append(array[i][0]);\r