diff options
Diffstat (limited to 'data_structures/TOWS_c.js')
-rw-r--r-- | data_structures/TOWS_c.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/TOWS_c.js b/data_structures/TOWS_c.js index 29c5d99..6094f11 100644 --- a/data_structures/TOWS_c.js +++ b/data_structures/TOWS_c.js @@ -10,8 +10,8 @@ function TOWS_c () { var herit = 0; var model = scicos_model(); - model.sim=list("tows_c",,4); - model.in = new ScilabDouble([nu]); + model.sim=list(new ScilabString(["tows_c"]),,new ScilabDouble([4])); + model.in1 = new ScilabDouble([nu]); model.in2 = new ScilabDouble([-2]); model.intyp = new ScilabDouble([-1]); model.out = new ScilabDouble(); @@ -25,6 +25,7 @@ function TOWS_c () { var gr_i = []; - var exprs = [[nz.toString()],[,varnam.toString()],[,herit.toString()]]; + var exprs = [[string(nz)],[,string(varnam)],[,string(herit)]]; this.x=new standard_define(new ScilabDouble([4,2]),,model,,exprs,,gr_i); + return new BasicBlock(this.x) } |