summaryrefslogtreecommitdiff
path: root/js/Branching/SWITCH2.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/SWITCH2.js')
-rw-r--r--js/Branching/SWITCH2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js
index ad4e6b15..3667651f 100644
--- a/js/Branching/SWITCH2.js
+++ b/js/Branching/SWITCH2.js
@@ -9,12 +9,12 @@ function SWITCH2() {
this.model.sim = list(new ScilabString(["switch2"]), new ScilabDouble([4]));
this.model.in1 = new ScilabDouble(in1);
this.model.out = new ScilabDouble([-1]);
- this.model.ipar = ipar;
+ this.model.ipar = new ScilabDouble(ipar);
this.model.rpar = new ScilabDouble([rpar]);
this.model.nzcross = new ScilabDouble([this.nzz]);
this.model.nmode = new ScilabDouble([1]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[string(ipar)],[string(rpar)],[string(this.nzz)]];
var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);