From: miettinen Date: Thu, 16 Apr 2015 07:54:38 +0000 (+0000) Subject: Removed internal Modelica solver functions that are not found in java 7 Math library... X-Git-Tag: v1.29.0~101 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=1575d32de8512a24d8e7c9f5fd6ea6802a0a5e81;p=simantics%2Fsysdyn.git Removed internal Modelica solver functions that are not found in java 7 Math library (refs #5769). git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31179 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Environment.java b/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Environment.java index 207d8f8a..846c7fbc 100644 --- a/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Environment.java +++ b/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Environment.java @@ -309,26 +309,7 @@ final public class Environment implements IEnvironment, ISystem { } }); - model.functions.put("floorDiv", new Fn1(2) { - @Override - public Object evaluate(IEnvironment environment, int argc) { - Integer x = (Integer)environment.getValue(0); - Integer y = (Integer)environment.getValue(1); - return Math.floorDiv(x, y); - } - - }); - model.functions.put("floorMod", new Fn1(2) { - - @Override - public Object evaluate(IEnvironment environment, int argc) { - Integer x = (Integer)environment.getValue(0); - Integer y = (Integer)environment.getValue(1); - return Math.floorMod(x, y); - } - - }); model.functions.put("abs", new Fn1(2) { @Override @@ -519,16 +500,6 @@ final public class Environment implements IEnvironment, ISystem { }); - model.functions.put("nextDown", new Fn1(2) { - - @Override - public Object evaluate(IEnvironment environment, int argc) { - Double x = (Double)environment.getValue(0); - return Math.nextDown(x); - } - - }); - model.functions.put("scalb", new Fn1(2) { @Override