summaryrefslogtreecommitdiff
path: root/src/main/webapp/setup.js
diff options
context:
space:
mode:
authorkamakshidasan2016-12-22 15:36:18 +0530
committerkamakshidasan2016-12-22 15:36:18 +0530
commitb2cd0d0cad32683971baf53efa2e50ff8d26f66b (patch)
treee359be4308ae9b361eae39bf277adcfbef807cef /src/main/webapp/setup.js
parent25afcccb46a603cc9d2485e25216acfffa2e3e02 (diff)
downloadxcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.tar.gz
xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.tar.bz2
xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.zip
Maven has been removed
Diffstat (limited to 'src/main/webapp/setup.js')
-rw-r--r--src/main/webapp/setup.js57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/main/webapp/setup.js b/src/main/webapp/setup.js
deleted file mode 100644
index e1527fb..0000000
--- a/src/main/webapp/setup.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var finalIntegrationTime = 1.0E05;
-var integratorAbsoluteTolerance = 1.0E-06;
-var integratorRelativeTolerance = 1.0E-06;
-var maximumStepSize = 0.0E00;
-var realTimeScaling = 0.0E00;
-var toleranceOnTime = 1.0E-10;
-var maxIntegrationTimeInterval = 1.00001E05;
-var solver = 0.0;
-var defaultProperties = null;
-
-var expressionArray = [""];
-
-var solver_kind_array = ["LSodar", "Sundials/CVODE - BDF - NEWTON",
- "Sundials/CVODE - BDF - FUNCTIONAL",
- "Sundials/CVODE - ADAMS - NEWTON",
- "Sundials/CVODE - ADAMS - FUNCTIONAL",
- "DOPRI5 - Dormand-Prince 4(5)",
- "RK45 - Runge-Kutta 4(5)",
- "Implicit RK45 - Implicit Runge-Kutta 4(5)",
- "CRANI - Crank-Nicolson 2(3)",
- "Sundials/IDA",
- "DDaskr - Newton",
- "DDaskr - GMRes"
-];
-
-function setup() {
-
- if (arguments[0] == "get") {
- defaultProperties = {
- i_time: ["Final Integration Time", "finalIntegrationTime", finalIntegrationTime],
- ab_tolerance: ["Integrator Absolute Tolerance", "integratorAbsoluteTolerance", integratorAbsoluteTolerance],
- rl_tolerance: ["Integrator Relative Tolerance", "integratorRelativeTolerance", integratorRelativeTolerance],
- max_step_sze: ["Maximum step size(0 means no limit)", "maximumStepSize", maximumStepSize],
- rt_scale: ["Real Time Scaling", "realTimeScaling", realTimeScaling],
- tm_tolerance: ["Tolerance on Time", "toleranceOnTime", toleranceOnTime],
- max_integ_time_interval: ["Maximum Integration Time Interval", "maxIntegrationTimeInterval", maxIntegrationTimeInterval],
- solv_kind: ["Solver Kind", "solver", solver]
- };
- return defaultProperties;
- } else if (arguments[0] == "set") {
- var properties = arguments[1];
- for (key in properties) {
- window[key] = properties[key];
- }
-
- } else if (arguments[0] == "getArray") {
- return solver_kind_array;
- }
-}
-
-function handleContext() {
- if (arguments[0] == "get") {
- return expressionArray;
- } else if (arguments[0] == "set") {
- expressionArray = arguments[1];
- }
-}