diff options
Diffstat (limited to 'js/NonLinear/LOGBLK_f.js')
-rw-r--r-- | js/NonLinear/LOGBLK_f.js | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/js/NonLinear/LOGBLK_f.js b/js/NonLinear/LOGBLK_f.js index d57bfed7..00f01aa1 100644 --- a/js/NonLinear/LOGBLK_f.js +++ b/js/NonLinear/LOGBLK_f.js @@ -12,36 +12,37 @@ function LOGBLK_f() { model.dep_ut = [true,false]; exprs = "%e"; gr_i = []; - x = standard_define([2,2],model,exprs,gr_i); + this.x = standard_define([2,2],model,exprs,gr_i); } LOGBLK_f.prototype.details = function LOGBLK_f() { + return this.x; } LOGBLK_f.prototype.get = function LOGBLK_f() { } LOGBLK_f.prototype.set = function LOGBLK_f() { - x = arg1; + this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; model = arg1.model; if (size(exprs,"*")==2) { - exprs = exprs[2-1]; -} + exprs = exprs[2-1]; + } while (true) { - [ok,a,exprs] = scicos_getvalue("Set log block parameters","Basis (>1)",list("vec",1),exprs); - if (!ok) { -break; -} - if (a<=1) { -message("Basis must be larger than 1"); - } else { - if (ok) { - graphics.exprs = exprs; - model.rpar = a; - x.graphics = graphics; - x.model = model; -break; -} -} -} + [ok,a,exprs] = scicos_getvalue("Set log block parameters","Basis (>1)",list("vec",1),exprs); + if (!ok) { + break; + } + if (a<=1) { + message("Basis must be larger than 1"); + } else { + if (ok) { + graphics.exprs = exprs; + model.rpar = a; + this.x.graphics = graphics; + this.x.model = model; + break; + } + } + } } } |