summaryrefslogtreecommitdiffstats
path: root/Temparray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Temparray.cpp')
-rw-r--r--Temparray.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Temparray.cpp b/Temparray.cpp
index 115d199..39edd1b 100644
--- a/Temparray.cpp
+++ b/Temparray.cpp
@@ -47,6 +47,8 @@ void Temparray::calcTemp(){
float width2, height2, depth2, innerwidth2, innerdepth2;
float loadableenergy, unloadableenergy;
+ calcweight();
+
for(int i = 0; i < sx; ++i) {
for(int j = 0; j < sy; ++j) {
for(int k = 0; k < sz; ++k) {