diff options
author | Sunil Shetye | 2018-07-09 17:07:46 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | f19304a4fe99556c5ddc35024c818d00ffe7e23a (patch) | |
tree | f795b52492d1962f66c2f84f575ce5074b0668a8 /js/Misc/MPBLOCK.js | |
parent | cbc375d9bc42bc29eeb919a020dfbf15921d3cf0 (diff) | |
download | sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.tar.gz sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.tar.bz2 sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.zip |
handle list separately
Diffstat (limited to 'js/Misc/MPBLOCK.js')
-rw-r--r-- | js/Misc/MPBLOCK.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/MPBLOCK.js b/js/Misc/MPBLOCK.js index aaaf1dc5..509c0db0 100644 --- a/js/Misc/MPBLOCK.js +++ b/js/Misc/MPBLOCK.js @@ -20,7 +20,7 @@ function MPBLOCK() { mo = modelica(); mo.model = nameF; mo.parameters = list(param,paramv); - this.model.sim = list(mo.model,10004); + this.model.sim = list(new ScilabString(mo.model),new ScilabDouble(10004)); mo.inputs = this.in1; mo.outputs = this.out; this.model.in1 = new ScilabDouble(ones(size(mo.inputs,"r"),1)); @@ -236,7 +236,7 @@ function MPBLOCK() { for (i=1;i<=lstsize(paramv);i+=1) { this.model.rpar = [[this.model.rpar],[double(paramv[i-1].slice())]]; } - this.model.sim[('1', 'double')] = new ScilabDouble(this.funam); + this.model.sim[1] = new ScilabDouble(this.funam); exprs.in1 = lab_1[1-1]; exprs.intype = lab_1[2-1]; exprs.out = lab_1[3-1]; |