Permalink
Browse files

minor gravity transition fix

  • Loading branch information...
jacob1 committed Aug 6, 2017
1 parent 55b31d6 commit 1dd4b00ec644b858bb3686628b4279ebfe3ce166
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/Simulation.cpp
@@ -4107,7 +4107,7 @@ void Simulation::UpdateParticles(int start, int end)
else s = 0;
}
else s = 0;
} else if (elements[t].LowPressureTransition>-1 && pv[y/CELL][x/CELL]<elements[t].LowPressure && gravtot<(elements[t].LowPressure/4.0f)) {
} else if (elements[t].LowPressureTransition>-1 && pv[y/CELL][x/CELL]<elements[t].LowPressure && gravtot<=(elements[t].LowPressure/4.0f)) {
// particle type change due to low pressure
if (elements[t].LowPressureTransition!=PT_NUM)
t = elements[t].LowPressureTransition;

0 comments on commit 1dd4b00

Please sign in to comment.