Permalink
Browse files

Change melting point for snow with wrong ctype back to 273.15

  • Loading branch information...
jacksonmj committed Nov 5, 2014
1 parent fb796c8 commit 9e7ead9bccc70a32a14a6e7b49c0f3e5d57b6d0a
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/simulation/Simulation.cpp
@@ -3880,9 +3880,15 @@ void Simulation::update_particles_i(int start, int inc)
{
if (parts[i].ctype > 0 && parts[i].ctype < PT_NUM && parts[i].ctype != t)
{
if ((elements[parts[i].ctype].LowTemperatureTransition==PT_ICEI || elements[parts[i].ctype].LowTemperatureTransition==PT_SNOW) && pt<elements[parts[i].ctype].LowTemperature)
if (elements[parts[i].ctype].LowTemperatureTransition==PT_ICEI || elements[parts[i].ctype].LowTemperatureTransition==PT_SNOW)
{
if (pt<elements[parts[i].ctype].LowTemperature)
s = 0;
}
else if (pt<273.15f)
s = 0;
else
if (s)
{
#ifdef REALISTIC
//One ice table value for all it's kinds

0 comments on commit 9e7ead9

Please sign in to comment.