]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Replaced interpolate function with a proper one
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 23 Aug 2010 12:03:47 +0000 (12:03 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 23 Aug 2010 12:03:47 +0000 (12:03 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17467 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/representation/expressions/WithLookupExpression.java

index 017a11bf478daf9e2cc149f56bd23fc236fcb603..b9137bd062a5855700296de3f63a51c98f4ca306 100644 (file)
@@ -32,7 +32,7 @@ public class WithLookupExpression extends Expression {
     @Override\r
     public String getEquation(IndependentVariable variable) {\r
         return \r
-        "    " + variable.getName() + " = Interpolate(table = " + lookupTable + ", xp = " + equation + ");\n";\r
+        "    " + variable.getName() + " = Interpolate(" + equation + ", " + lookupTable + ", 2);\n";\r
     }\r
 \r
 }\r