summaryrefslogtreecommitdiff
path: root/js/Sources/RFILE_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Sources/RFILE_f.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Sources/RFILE_f.js')
-rw-r--r--js/Sources/RFILE_f.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Sources/RFILE_f.js b/js/Sources/RFILE_f.js
index a05b52ed..f2c02647 100644
--- a/js/Sources/RFILE_f.js
+++ b/js/Sources/RFILE_f.js
@@ -39,12 +39,6 @@ function RFILE_f() {
return options;
}
RFILE_f.prototype.set = function RFILE_f() {
- this.tmask1 = parseFloat(arguments[0]["tmask1"])
- this.outmask = parseFloat(arguments[0]["outmask"])
- this.fname1 = parseFloat(arguments[0]["fname1"])
- this.frmt1 = parseFloat(arguments[0]["frmt1"])
- this.N = parseFloat(arguments[0]["N"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
var dstate = this.model.dstate;
var ipar = this.model.ipar;
@@ -59,7 +53,13 @@ function RFILE_f() {
this.exprs[6-1] = [];
}
while (true) {
- [ok,this.tmask1,this.outmask,this.fname1,this.frmt1,this.N,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","RFILE_f")],[" "],["Read from an input file"],[" "],["Read is done on:"],["  - A binary file if no format given"],["  - A formatted text file if a format (fortran type) is given"]],["Time Record Selection","Outputs Record Selection","Input File Name","Input Format","Buffer Size"],list("vec",-1,"vec",-1,"str",1,"str",1,"vec",1),this.exprs);
+ var ok = true;
+ this.tmask1 = parseFloat(arguments[0]["tmask1"]);
+ this.outmask = parseFloat(arguments[0]["outmask"]);
+ this.fname1 = parseFloat(arguments[0]["fname1"]);
+ this.frmt1 = parseFloat(arguments[0]["frmt1"]);
+ this.N = parseFloat(arguments[0]["N"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}