diff options
author | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
commit | eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00 (patch) | |
tree | 6378935263fe5cafd389b6893ac3b37a1dd4b1a7 /js/NonLinear/LOGBLK_f.js | |
parent | afed64f1a0eab0b2d742088186d7bc340a2c895b (diff) | |
download | sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.gz sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.bz2 sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.zip |
add return value from scicos_getvalue to global vars
Diffstat (limited to 'js/NonLinear/LOGBLK_f.js')
-rw-r--r-- | js/NonLinear/LOGBLK_f.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/NonLinear/LOGBLK_f.js b/js/NonLinear/LOGBLK_f.js index 3cd0de2f..359068b9 100644 --- a/js/NonLinear/LOGBLK_f.js +++ b/js/NonLinear/LOGBLK_f.js @@ -2,12 +2,12 @@ function LOGBLK_f() { LOGBLK_f.prototype.define = function LOGBLK_f() { in1 = 1; - a = math.E; + this.a = math.E; model = scicos_model(); model.sim = "logblk"; model.in1 = -1; model.out = -1; - model.rpar = a; + model.rpar = this.a; model.blocktype = "c"; model.dep_ut = [true,false]; exprs = "%e"; @@ -29,16 +29,16 @@ function LOGBLK_f() { exprs = exprs[2-1]; } while (true) { - [ok,a,exprs] = scicos_getvalue("Set log block parameters","Basis (>1)",list("vec",1),exprs); + [ok,this.a,exprs] = scicos_getvalue("Set log block parameters","Basis (>1)",list("vec",1),exprs); if (!ok) { break; } - if (a<=1) { + if (this.a<=1) { message("Basis must be larger than 1"); } else { if (ok) { graphics.exprs = exprs; - model.rpar = a; + model.rpar = this.a; this.x.graphics = graphics; this.x.model = model; break; |