summaryrefslogtreecommitdiff
path: root/js/Branching/SWITCH2_m.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/SWITCH2_m.js')
-rw-r--r--js/Branching/SWITCH2_m.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js
index e49aa38c..087fe226 100644
--- a/js/Branching/SWITCH2_m.js
+++ b/js/Branching/SWITCH2_m.js
@@ -12,12 +12,12 @@ function SWITCH2_m() {
this.model.out = new ScilabDouble([-1]);
this.model.out2 = new ScilabDouble([-2]);
this.model.outtyp = 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 = [[sci2exp(1)],[string(ipar)],[string(rpar)],[string(this.nzz)]];
var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);