diff options
author | Sunil Shetye | 2018-07-09 17:07:46 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | f19304a4fe99556c5ddc35024c818d00ffe7e23a (patch) | |
tree | f795b52492d1962f66c2f84f575ce5074b0668a8 /js/PDE/PDE.js | |
parent | cbc375d9bc42bc29eeb919a020dfbf15921d3cf0 (diff) | |
download | sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.tar.gz sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.tar.bz2 sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.zip |
handle list separately
Diffstat (limited to 'js/PDE/PDE.js')
-rw-r--r-- | js/PDE/PDE.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/PDE/PDE.js b/js/PDE/PDE.js index 3e8a52d7..29a7c951 100644 --- a/js/PDE/PDE.js +++ b/js/PDE/PDE.js @@ -3,7 +3,7 @@ function PDE() { PDE.prototype.define = function PDE() { this.model = scicos_model(); this.model.state = new ScilabDouble(zeros(10,1)); - this.model.sim = list("PDE",0); + this.model.sim = list(new ScilabString("PDE"),new ScilabDouble(0)); this.model.in1 = [[1],[1],[1],[1],[1]]; this.model.out = [[10],[0]]; this.model.blocktype = new ScilabString("c"); @@ -96,14 +96,14 @@ function PDE() { out = [[Nbr_maillage],[size(mesures,"*")]]; } if ((flag_type==1)) { - this.model.sim = list(this.rdnom,2004); + this.model.sim = list(new ScilabDouble(this.rdnom),new ScilabDouble(2004)); if ((find(oper==1)!=[])) { this.model.state = new ScilabDouble(zeros(2*Nbr_maillage,1)); } else { this.model.state = new ScilabDouble(zeros(Nbr_maillage,1)); } } else if ((flag_type==2)) { - this.model.sim = list(this.rdnom,12004); + this.model.sim = list(new ScilabDouble(this.rdnom),new ScilabDouble(12004)); if ((find(oper==1)!=[])) { if ((type_meth==3&&(find(oper==2)!=[]||find(oper==4)!=[]))) { this.model.state = new ScilabDouble(zeros(6*Nbr_maillage,1)); |