summaryrefslogtreecommitdiff
path: root/js/PDE/PDE.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/PDE/PDE.js')
-rw-r--r--js/PDE/PDE.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/js/PDE/PDE.js b/js/PDE/PDE.js
index 3268c0e0..3e8a52d7 100644
--- a/js/PDE/PDE.js
+++ b/js/PDE/PDE.js
@@ -1,17 +1,17 @@
/* autogenerated from "macros/PDE/PDE.sci" */
function PDE() {
PDE.prototype.define = function PDE() {
- model = scicos_model();
- model.state = zeros(10,1);
- model.sim = list("PDE",0);
- model.in1 = [[1],[1],[1],[1],[1]];
- model.out = [[10],[0]];
- model.blocktype = "c";
- model.dep_ut = [false,true];
+ this.model = scicos_model();
+ this.model.state = new ScilabDouble(zeros(10,1));
+ this.model.sim = list("PDE",0);
+ this.model.in1 = [[1],[1],[1],[1],[1]];
+ this.model.out = [[10],[0]];
+ this.model.blocktype = new ScilabString("c");
+ this.model.dep_ut = [false,true];
params_pde = tlist([["paramspde"],["a"],["b"],["txt_exp"],["check_op1"],["a1"],["b1"],["check_op2"],["a2"],["b2"],["check_op3"],["a3"],["b3"],["check_op4"],["a4"],["b4"],["check_op5"],["a5"],["b5"],["check_op6"],["a6"],["b6"],["check_op7"],["a7"],["b7"],["discr_cst"],["discr_non_cst"],["signe"],["rad_automatique"],["rad_manuel"],["methode"],["ord1"],["ord2"],["ord3"],["degre"],["nnode"],["txt_pas"],["CI"],["dCI"],["CLa"],["CLa_exp"],["CLb"],["CLb_exp"],["points"]],"","","","0","","IN_EDP1(t)","0","","IN_EDP2(t)","0","","IN_EDP3(t)","0","","IN_EDP4(t)","0","","IN_EDP5(t)","0","","IN_EDP6(t)","0","","IN_EDP7(t)","0","0","0","0","0","0","","","","","","","","","0","IN_CL1(t)","0","IN_CL2(t)","");
label = list(params_pde,[],"");
gr_i = [];
- this.x = standard_define([3,3],model,label,gr_i);
+ this.x = standard_define([3,3],this.model,label,gr_i);
return new BasicBlock(this.x);
}
PDE.prototype.details = function PDE() {
@@ -29,7 +29,7 @@ function PDE() {
this.x = arg1;
graphics = arg1.graphics;
label = graphics.exprs;
- model = arg1.model;
+ this.model = arg1.model;
params_pde = label[1-1];
while (true) {
[ln,fun]=where()
@@ -96,29 +96,29 @@ function PDE() {
out = [[Nbr_maillage],[size(mesures,"*")]];
}
if ((flag_type==1)) {
- model.sim = list(this.rdnom,2004);
+ this.model.sim = list(this.rdnom,2004);
if ((find(oper==1)!=[])) {
- model.state = zeros(2*Nbr_maillage,1);
+ this.model.state = new ScilabDouble(zeros(2*Nbr_maillage,1));
} else {
- model.state = zeros(Nbr_maillage,1);
+ this.model.state = new ScilabDouble(zeros(Nbr_maillage,1));
}
} else if ((flag_type==2)) {
- model.sim = list(this.rdnom,12004);
+ this.model.sim = list(this.rdnom,12004);
if ((find(oper==1)!=[])) {
if ((type_meth==3&&(find(oper==2)!=[]||find(oper==4)!=[]))) {
- model.state = zeros(6*Nbr_maillage,1);
+ this.model.state = new ScilabDouble(zeros(6*Nbr_maillage,1));
} else if ((type_meth==1)) {
- model.state = zeros(4*Nbr,1);
+ this.model.state = new ScilabDouble(zeros(4*Nbr,1));
} else {
- model.state = zeros(4*Nbr_maillage,1);
+ this.model.state = new ScilabDouble(zeros(4*Nbr_maillage,1));
}
} else {
if ((type_meth==3&&(find(oper==2)!=[]||find(oper==4)!=[]))) {
- model.state = zeros(4*Nbr_maillage,1);
+ this.model.state = new ScilabDouble(zeros(4*Nbr_maillage,1));
} else if ((type_meth==1)) {
- model.state = zeros(2*Nbr,1);
+ this.model.state = new ScilabDouble(zeros(2*Nbr,1));
} else {
- model.state = zeros(2*Nbr_maillage,1);
+ this.model.state = new ScilabDouble(zeros(2*Nbr_maillage,1));
}
}
}
@@ -127,13 +127,13 @@ function PDE() {
break;
}
if (!ok) {
- [model,graphics,ok] = check_io(model,graphics,ones(k,1),out.slice(),[],[]);
+ [model,graphics,ok] = check_io(this.model,graphics,ones(k,1),out.slice(),[],[]);
}
label[1-1] = params_pde;
label[2-1] = tt;
graphics.exprs = label;
this.x.graphics = graphics;
- this.x.model = model;
+ this.x.model = this.model;
break;
}
return new BasicBlock(this.x);