Fix initialisation of transitionOccurred
This commit is contained in:
parent
829e2cca7d
commit
1eeed277a0
@ -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<PT_NUM && elements[elements[t].HighTemperatureTransition].State==ST_GAS)
|
||||
|
Reference in New Issue
Block a user