diff options
author | ASP1234 | 2016-06-23 06:09:00 +0000 |
---|---|---|
committer | ASP1234 | 2016-06-23 06:12:59 +0000 |
commit | faeb04600e13a5c1c4ca410cf65309d65e269b41 (patch) | |
tree | 2a1dcf2321735e2b67eeaf5d7991282274191d60 /details.js | |
parent | 20e581facb1871847e0fa945ccd3020a10e653c9 (diff) | |
download | xcos-on-web-faeb04600e13a5c1c4ca410cf65309d65e269b41.tar.gz xcos-on-web-faeb04600e13a5c1c4ca410cf65309d65e269b41.tar.bz2 xcos-on-web-faeb04600e13a5c1c4ca410cf65309d65e269b41.zip |
Implement BOUNCE Block
Diffstat (limited to 'details.js')
-rw-r--r-- | details.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -273,10 +273,12 @@ function ScilabDouble() { for (i = 0; i < this.height; i++) { for (j = 0; j < this.width; j++) { this["data" + i + j] = new data(); - if(array[i][j] % 1 == 0) + if(array[i][j] % 1 == 0) { this["data" + i + j].realPart = array[i][j].toFixed(1); - else + } + else { this["data" + i + j].realPart = array[i][j]; + } this["data" + i + j].line = i; this["data" + i + j].column = j; } @@ -474,6 +476,7 @@ function BasicBlock() { this.objectsParameters = options.model.opar; this.nbZerosCrossing = options.model.nzcross; this.nmode = options.model.nmode; + this.state = options.model.state; this.oDState = options.model.odstate; this.equations = options.model.equations; this.blockName = "BasicBlock"; |