summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Temparray.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Temparray.cpp b/Temparray.cpp
index 5894e63..b16bb55 100644
--- a/Temparray.cpp
+++ b/Temparray.cpp
@@ -113,17 +113,17 @@ void Temparray::calcTemp(){
temperatureold(i, j, k, l, m) =
temperatureold(i, j, k, l, m) + ((temperatureold(i, j, k, l, m) -
- temperatureold(i, j, k, l-1, m))*(-exp(-(1/tau12))));
+ temperatureold(i, j, k, l-1, m))*-exp(-(1/tau12)));
temperatureold(i, j, k, l-1, m) =
temperatureold(i, j, k, l-1, m) - ((temperatureold(i, j, k, l, m) -
- temperatureold(i, j, k, l-1, m))*(-exp(-(1/tau21))));
+ temperatureold(i, j, k, l-1, m))*-exp(-(1/tau21)));
if(l!=5)temperatureold(i, j, k, l, m) =
temperatureold(i, j, k, l, m) + ((temperatureold(i, j, k, l, m) -
- temperatureold(i, j, k, l+1, m))*(-exp(-(1/tau13))));
+ temperatureold(i, j, k, l+1, m))*exp(-(1/tau13)));
if(l!=5)temperatureold(i, j, k, l+1, m) =
temperatureold(i, j, k, l+1, m) - ((temperatureold(i, j, k, l, m) -
- temperatureold(i, j, k, l+1, m))*(-exp(-(1/tau31))));
+ temperatureold(i, j, k, l+1, m))*-exp(-(1/tau31)));
}
}