summaryrefslogtreecommitdiff
path: root/js/Sources/CONST_m.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 15:19:38 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch)
tree36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/Sources/CONST_m.js
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/Sources/CONST_m.js')
-rw-r--r--js/Sources/CONST_m.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/CONST_m.js b/js/Sources/CONST_m.js
index c2357e68..3305fcd1 100644
--- a/js/Sources/CONST_m.js
+++ b/js/Sources/CONST_m.js
@@ -4,14 +4,14 @@ function CONST_m() {
this.C = [1];
this.model = scicos_model();
this.model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
- this.model.in1 = [];
+ this.model.in1 = new ScilabDouble([]);
this.model.out = new ScilabDouble([size(this.C,1)]);
- this.model.in2 = [];
+ this.model.in2 = new ScilabDouble([]);
this.model.out2 = new ScilabDouble([size(this.C,2)]);
- this.model.rpar = this.C;
+ this.model.rpar = new ScilabDouble(this.C);
this.model.opar = list();
this.model.blocktype = new ScilabString(["d"]);
- this.model.dep_ut = [false,false];
+ this.model.dep_ut = new ScilabDouble([false,false]);
var exprs = sci2exp(this.C);
var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);
@@ -65,7 +65,7 @@ function CONST_m() {
var ok = false;
}
if (ok) {
- this.model.rpar = [];
+ this.model.rpar = new ScilabDouble([]);
var tmpvar0 = set_io(this.model,graphics,list(),list(nout,ot),[],[])
this.model = tmpvar0[0]
var graphics = tmpvar0[1]