From 0a3788d46553caffc5240d6010e5a8e1703c5aaf Mon Sep 17 00:00:00 2001 From: AMIT KUMAR YADAV Date: Tue, 21 Jun 2016 11:43:19 +0530 Subject: Fixed some edge cases --- data_structures/INTRP2BLK_f.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data_structures/INTRP2BLK_f.js') diff --git a/data_structures/INTRP2BLK_f.js b/data_structures/INTRP2BLK_f.js index 983a799..a70bdec 100644 --- a/data_structures/INTRP2BLK_f.js +++ b/data_structures/INTRP2BLK_f.js @@ -8,8 +8,8 @@ function INTRP2BLK_f () { var c = [[0,1],[1,2]]; var model = scicos_model(); - model.sim=list("intrp2",1); - model.in = new ScilabDouble([1],[1]); + model.sim=list(new ScilabString(["intrp2"]),new ScilabDouble([1])); + model.in1 = new ScilabDouble([1],[1]); model.out = new ScilabDouble([1]); model.rpar = new ScilabDouble([a],[b],[...c]); model.ipar = new ScilabDouble([2],[2]); @@ -20,4 +20,5 @@ function INTRP2BLK_f () { var gr_i = []; this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } -- cgit