summaryrefslogtreecommitdiff
path: root/js/Sources/INIMPL_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-09 11:43:39 +0530
committerSunil Shetye2018-07-09 12:16:25 +0530
commit62b1d7dd9183ed75733b44104890586b03818214 (patch)
tree9859e9ca295df98df945bd5fcccc3a264e8bede1 /js/Sources/INIMPL_f.js
parent5c011853630a1b466ef4789d5b600dd530d0a3ec (diff)
downloadsci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.gz
sci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.bz2
sci2js-62b1d7dd9183ed75733b44104890586b03818214.zip
support ScilabBoolean, ScilabDouble, ScilabString
Diffstat (limited to 'js/Sources/INIMPL_f.js')
-rw-r--r--js/Sources/INIMPL_f.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/js/Sources/INIMPL_f.js b/js/Sources/INIMPL_f.js
index 9df4edbe..10b32d3a 100644
--- a/js/Sources/INIMPL_f.js
+++ b/js/Sources/INIMPL_f.js
@@ -1,21 +1,21 @@
/* autogenerated from "macros/Sources/INIMPL_f.sci" */
function INIMPL_f() {
INIMPL_f.prototype.define = function INIMPL_f() {
- model = scicos_model();
- model.sim = "inimpl";
- model.out = [-1];
- model.out2 = [1];
- model.ipar = [1];
- model.dep_ut = [false,false];
- model.blocktype = "c";
+ this.model = scicos_model();
+ this.model.sim = new ScilabString("inimpl");
+ this.model.out = [-1];
+ this.model.out2 = [1];
+ this.model.ipar = [1];
+ this.model.dep_ut = [false,false];
+ this.model.blocktype = new ScilabString("c");
mo = modelica();
mo.model = "PORT";
mo.outputs = "n";
- model.equations = mo;
+ this.model.equations = new ScilabDouble(mo);
this.prt = 1;
exprs = "1";
gr_i = [];
- this.x = standard_define([1,1],model,exprs,gr_i);
+ this.x = standard_define([1,1],this.model,exprs,gr_i);
this.x.graphics.out_implicit = ["I"];
return new ImplicitInBlock(this.x);
}
@@ -32,7 +32,7 @@ function INIMPL_f() {
this.x = arg1;
graphics = arg1.graphics;
exprs = graphics.exprs;
- model = arg1.model;
+ this.model = arg1.model;
if (size(exprs,"*")==2) {
exprs = exprs[1-1];
}
@@ -45,14 +45,14 @@ function INIMPL_f() {
if (this.prt<=0) {
block_parameter_error(msprintf("Wrong value for \'Port Number\' parameter: %d.",this.prt),"Strictly positive integer expected.");
} else {
- if (model.ipar!=this.prt) {
+ if (this.model.ipar!=this.prt) {
needcompile = 4;
y = needcompile;
}
- model.ipar = this.prt;
+ this.model.ipar = new ScilabDouble(this.prt);
graphics.exprs = exprs;
this.x.graphics = graphics;
- this.x.model = model;
+ this.x.model = this.model;
break;
}
}