summaryrefslogtreecommitdiff
path: root/details.js
diff options
context:
space:
mode:
authorASP12342016-06-23 06:09:00 +0000
committerASP12342016-06-23 06:12:59 +0000
commitfaeb04600e13a5c1c4ca410cf65309d65e269b41 (patch)
tree2a1dcf2321735e2b67eeaf5d7991282274191d60 /details.js
parent20e581facb1871847e0fa945ccd3020a10e653c9 (diff)
downloadxcos-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.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/details.js b/details.js
index 1ee4f00..c1351a2 100644
--- a/details.js
+++ b/details.js
@@ -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";