summaryrefslogtreecommitdiff
path: root/js/Linear/INTEGRAL.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Linear/INTEGRAL.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Linear/INTEGRAL.js')
-rw-r--r--js/Linear/INTEGRAL.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/INTEGRAL.js b/js/Linear/INTEGRAL.js
index b2aabccd..881a01b5 100644
--- a/js/Linear/INTEGRAL.js
+++ b/js/Linear/INTEGRAL.js
@@ -32,15 +32,15 @@ function INTEGRAL() {
return options;
}
INTEGRAL.prototype.set = function INTEGRAL() {
- this.x0 = inverse(arguments[0]["x0"])
- this.reinit = parseFloat(arguments[0]["reinit"])
- this.satur = parseFloat(arguments[0]["satur"])
- this.maxp = parseFloat(arguments[0]["maxp"])
- this.lowp = arguments[0]["lowp"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.x0,this.reinit,this.satur,this.maxp,this.lowp,this.exprs] = scicos_getvalue("Set Integral block parameters",["Initial Condition","With re-intialization (1:yes, 0:no)","With saturation (1:yes, 0:no)","Upper limit","Lower limit"],list("vec",-1,"vec",1,"vec",1,"vec",-1,"vec",-1),this.exprs);
+ var ok = true;
+ this.x0 = inverse(arguments[0]["x0"]);
+ this.reinit = parseFloat(arguments[0]["reinit"]);
+ this.satur = parseFloat(arguments[0]["satur"]);
+ this.maxp = parseFloat(arguments[0]["maxp"]);
+ this.lowp = arguments[0]["lowp"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}