summaryrefslogtreecommitdiff
path: root/js/Electrical/Diode.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-15 07:29:25 +0530
committerSunil Shetye2018-07-16 15:31:24 +0530
commit1896e61799fda88188ffc3a8df12a4029361048c (patch)
tree08454cae6871e080e52d8087369ee43acc0a48d0 /js/Electrical/Diode.js
parent92f8a251bbaeddf6ec034722a3079d865517d650 (diff)
downloadsci2js-1896e61799fda88188ffc3a8df12a4029361048c.tar.gz
sci2js-1896e61799fda88188ffc3a8df12a4029361048c.tar.bz2
sci2js-1896e61799fda88188ffc3a8df12a4029361048c.zip
support string vector also
Diffstat (limited to 'js/Electrical/Diode.js')
-rw-r--r--js/Electrical/Diode.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index 5cd03621..a25b513d 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -50,7 +50,7 @@ function Diode() {
break;
}
this.model.rpar = new ScilabDouble([this.Ids],[this.Vt],[this.Maxexp],[this.R]);
- this.model.equations.parameters = list(["Ids","Vt","Maxexp","R"],list(this.Ids,this.Vt,this.Maxexp,this.R));
+ this.model.equations.parameters = list(new ScilabDouble([["Ids","Vt","Maxexp","R"]]),list(this.Ids,this.Vt,this.Maxexp,this.R));
this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;