]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Removed internal Modelica solver functions that are not found in java 7 Math library...
authormiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 16 Apr 2015 07:54:38 +0000 (07:54 +0000)
committermiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 16 Apr 2015 07:54:38 +0000 (07:54 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31179 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index 207d8f8a959cba7673f4d5bd8054ca61157e118c..846c7fbc3138610953727e3635439f4739fb684b 100644 (file)
@@ -309,26 +309,7 @@ final public class Environment implements IEnvironment, ISystem {
                        }\r
                        \r
                });\r
-               model.functions.put("floorDiv", new Fn1(2) {\r
 \r
-                       @Override\r
-                       public Object evaluate(IEnvironment environment, int argc) {\r
-                               Integer x = (Integer)environment.getValue(0);\r
-                               Integer y = (Integer)environment.getValue(1);\r
-                               return Math.floorDiv(x, y);\r
-                       }\r
-                       \r
-               });\r
-               model.functions.put("floorMod", new Fn1(2) {\r
-\r
-                       @Override\r
-                       public Object evaluate(IEnvironment environment, int argc) {\r
-                               Integer x = (Integer)environment.getValue(0);\r
-                               Integer y = (Integer)environment.getValue(1);\r
-                               return Math.floorMod(x, y);\r
-                       }\r
-                       \r
-               });\r
                model.functions.put("abs", new Fn1(2) {\r
 \r
                        @Override\r
@@ -519,16 +500,6 @@ final public class Environment implements IEnvironment, ISystem {
                        \r
                });\r
 \r
-               model.functions.put("nextDown", new Fn1(2) {\r
-\r
-                       @Override\r
-                       public Object evaluate(IEnvironment environment, int argc) {\r
-                               Double x = (Double)environment.getValue(0);\r
-                               return Math.nextDown(x);\r
-                       }\r
-                       \r
-               });\r
-\r
                model.functions.put("scalb", new Fn1(2) {\r
 \r
                        @Override\r