From: lempinen Date: Fri, 28 Oct 2011 09:16:29 +0000 (+0000) Subject: Fixing Sheet Ranges X-Git-Tag: simantics-1.6~116 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b12cead53c25d1aa84d5727bcd7fbf9816c5de26;p=simantics%2Fsysdyn.git Fixing Sheet Ranges git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@23085 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java index 9571a065..00fcf7cc 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java @@ -116,7 +116,7 @@ public class Sheet extends org.simantics.sysdyn.representation.Variable { if(array[0].length > 1) { // Has two dimensions - clazz.append("Real[" + array.length + ", " + array[0].length + "] "); + clazz.append("constant Real[" + array.length + ", " + array[0].length + "] "); clazz.append(possibleRange.replace(":", "_") + " = {"); for(int i = 0; i < array.length; i++) { clazz.append("{"); @@ -132,7 +132,7 @@ public class Sheet extends org.simantics.sysdyn.representation.Variable { clazz.append("};\n"); } else { // Has one dimension - clazz.append("Real[" + array.length + "] "); + clazz.append("constant Real[" + array.length + "] "); clazz.append(possibleRange.replace(":", "_") + " = {"); for(int i = 0; i < array.length; i++) { clazz.append(array[i][0]);