Skip to content

Commit

Permalink
Fix initialisation of transitionOccurred
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonmj committed Nov 6, 2014
1 parent 829e2cc commit 1eeed27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/Simulation.cpp
Expand Up @@ -3733,6 +3733,8 @@ void Simulation::update_particles_i(int start, int inc)
#endif
}

transitionOccurred = false;

j = surround_space = nt = 0;//if nt is greater than 1 after this, then there is a particle around the current particle, that is NOT the current particle's type, for water movement.
for (nx=-1; nx<2; nx++)
for (ny=-1; ny<2; ny++) {
Expand Down Expand Up @@ -3841,8 +3843,6 @@ void Simulation::update_particles_i(int start, int inc)
}
#endif

transitionOccurred = false;

ctemph = ctempl = pt;
// change boiling point with pressure
if ((elements[t].State==ST_LIQUID && elements[t].HighTemperatureTransition>-1 && elements[t].HighTemperatureTransition<PT_NUM && elements[elements[t].HighTemperatureTransition].State==ST_GAS)
Expand Down

0 comments on commit 1eeed27

Please sign in to comment.