summaryrefslogtreecommitdiff
path: root/js/Misc/scifunc_block_m.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/Misc/scifunc_block_m.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Misc/scifunc_block_m.js')
-rw-r--r--js/Misc/scifunc_block_m.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/Misc/scifunc_block_m.js b/js/Misc/scifunc_block_m.js
index 1933c3b0..554d97ba 100644
--- a/js/Misc/scifunc_block_m.js
+++ b/js/Misc/scifunc_block_m.js
@@ -52,20 +52,20 @@ function scifunc_block_m() {
return options;
}
scifunc_block_m.prototype.set = function scifunc_block_m() {
- this.i = arguments[0]["i"]
- this.o = arguments[0]["o"]
- this.ci = parseFloat(arguments[0]["ci"])
- this.co = parseFloat(arguments[0]["co"])
- this.xx = inverse(arguments[0]["xx"])
- this.z = inverse(arguments[0]["z"])
- this.rpar = inverse(arguments[0]["rpar"])
- this.auto0 = arguments[0]["auto0"]
- this.deptime = arguments[0]["deptime"]
- this.lab = arguments[0]["lab"]
var needcompile = 0;
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.i,this.o,this.ci,this.co,this.xx,this.z,this.rpar,this.auto0,this.deptime,this.lab] = scicos_getvalue([["Set scifunc_block parameters"],["only regular blocks supported"]],["input ports sizes","output port sizes","input event ports sizes","output events ports sizes","initial continuous state","initial discrete state","System parameters vector","initial firing vector (<0 for no firing)","is block always active (0:no, 1:yes)"],list("mat",[-1,2],"mat",[-2,2],"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",1),this.exprs[1-1]);
+ var ok = true;
+ this.i = arguments[0]["i"];
+ this.o = arguments[0]["o"];
+ this.ci = parseFloat(arguments[0]["ci"]);
+ this.co = parseFloat(arguments[0]["co"]);
+ this.xx = inverse(arguments[0]["xx"]);
+ this.z = inverse(arguments[0]["z"]);
+ this.rpar = inverse(arguments[0]["rpar"]);
+ this.auto0 = arguments[0]["auto0"];
+ this.deptime = arguments[0]["deptime"];
+ this.lab = arguments[0]["lab"];
if (!ok) {
break;
}