diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 78b198ee0..d9f802c4f 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -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++) { @@ -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