summaryrefslogtreecommitdiff
path: root/data_structures/Ground.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/Ground.js')
-rw-r--r--data_structures/Ground.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/Ground.js b/data_structures/Ground.js
index d3a0f12..53c0d1a 100644
--- a/data_structures/Ground.js
+++ b/data_structures/Ground.js
@@ -2,7 +2,7 @@ function Ground () {
var model = scicos_model();
- model.in = new ScilabDouble([1]);
+ model.in1 = new ScilabDouble([1]);
model.out = new ScilabDouble();
model.sim = new ScilabString(["Ground"]);
model.blocktype = new ScilabString(["c"]);
@@ -16,7 +16,8 @@ function Ground () {
var exprs = "";
var gr_i = [];
- this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,list(gr_i,0));
+ this.x=standard_define([1,1],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = new ScilabString(["I"]);
this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new GroundBlock(this.x)
}