From f19304a4fe99556c5ddc35024c818d00ffe7e23a Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 9 Jul 2018 17:07:46 +0530 Subject: handle list separately --- js/Hydraulics/SourceP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/Hydraulics/SourceP.js') diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js index 2ed928b6..0a726fc5 100644 --- a/js/Hydraulics/SourceP.js +++ b/js/Hydraulics/SourceP.js @@ -51,7 +51,7 @@ function SourceP() { break; } this.model.rpar = [[this.P0],[this.T0],[this.H0],[this.option_temperature]]; - this.model.equations.parameters[('2', 'double')] = list(this.P0,this.T0,this.H0,this.option_temperature); + this.model.equations.parameters[2] = list(new ScilabDouble(this.P0),new ScilabDouble(this.T0),new ScilabDouble(this.H0),new ScilabDouble(this.option_temperature)); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = this.model; -- cgit