summaryrefslogtreecommitdiff
path: root/js/Linear/DOLLAR_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/DOLLAR_f.js')
-rw-r--r--js/Linear/DOLLAR_f.js23
1 files changed, 13 insertions, 10 deletions
diff --git a/js/Linear/DOLLAR_f.js b/js/Linear/DOLLAR_f.js
index daf7ecc1..843477e9 100644
--- a/js/Linear/DOLLAR_f.js
+++ b/js/Linear/DOLLAR_f.js
@@ -1,10 +1,10 @@
/* autogenerated from "macros/Linear/DOLLAR_f.sci" */
function DOLLAR_f() {
DOLLAR_f.prototype.define = function DOLLAR_f() {
- z = 0;
+ var z = 0;
this.inh = 0;
- in1 = 1;
- exprs = string([[z],[this.inh]]);
+ var in1 = 1;
+ var exprs = string([[z],[this.inh]]);
this.model = scicos_model();
this.model.sim = new ScilabString(["dollar"]);
this.model.in1 = new ScilabDouble([in1]);
@@ -13,7 +13,7 @@ function DOLLAR_f() {
this.model.dstate = new ScilabDouble([z]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = [false,false];
- gr_i = [];
+ var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);
return new BasicBlock(this.x);
}
@@ -31,8 +31,8 @@ function DOLLAR_f() {
this.a = arguments[0]["a"]
this.inh = parseFloat(arguments[0]["inh"])
this.x = arg1;
- graphics = arg1.graphics;
- exprs = graphics.exprs;
+ var graphics = arg1.graphics;
+ var exprs = graphics.exprs;
this.model = arg1.model;
if (size(exprs,"*")<2) {
exprs[2-1] = "0";
@@ -42,13 +42,16 @@ function DOLLAR_f() {
if (!ok) {
break;
}
- out = size(this.a,"*");
+ var out = size(this.a,"*");
if (out==0) {
- out = [];
+ var out = [];
}
- in1 = out;
+ var in1 = out;
if (ok) {
- [this.model,graphics,ok] = check_io(this.model,graphics,-1,-1,ones(1-this.inh,1),[]);
+ var tmpvar0 = check_io(this.model,graphics,-1,-1,ones(1-this.inh,1),[])
+ this.model = tmpvar0[0]
+ var graphics = tmpvar0[1]
+ var ok = tmpvar0[2];
}
if (ok) {
graphics.exprs = exprs;