Skip to content

Commit

Permalink
Merge pull request #88 from EcotopeResearch/mixfix
Browse files Browse the repository at this point in the history
Fix inversion mix bug
  • Loading branch information
pmskintner authored Sep 30, 2020
2 parents 69ebe62 + 6688d3c commit 77d1f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HPWH.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ void HPWH::mixTankInversions() {
do {
hasInversion = false;
//Start from the top and check downwards
for (int i = numNodes - 1; i >= 0; i--) {
for (int i = numNodes - 1; i > 0; i--) {
if (tankTemps_C[i] < tankTemps_C[i - 1]) {
// Temperature inversion!
hasInversion = true;
Expand Down

0 comments on commit 77d1f3c

Please sign in to comment.