diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-18 20:01:54 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-18 20:01:54 (GMT) |
| commit | d85049fb9338e46a8a8be326bf08c2b78dba55a1 (patch) | |
| tree | 3c9bdd9f72e54ca9e77e4bbf4dd676a95b0b34c3 /src/simulation | |
| parent | 1681429d7f08dd04be598ec3346abc2e916dd44b (diff) | |
| download | powder-d85049fb9338e46a8a8be326bf08c2b78dba55a1.zip powder-d85049fb9338e46a8a8be326bf08c2b78dba55a1.tar.gz | |
TPT: A fix for ice with ctype = 0. e52f730969
Diffstat (limited to 'src/simulation')
| -rw-r--r-- | src/simulation/Simulation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 8360479..0f0cd9c 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2687,6 +2687,11 @@ void Simulation::update_particles_i(int start, int inc) || t==PT_WTRV) ctempl -= 2.0f*pv[y/CELL][x/CELL]; s = 1; + + //A fix for ice with ctype = 0 + if (t==PT_ICEI && parts[i].ctype==0) + parts[i].ctype = PT_WATR; + if (ctemph>ptransitions[t].thv&&ptransitions[t].tht>-1) { // particle type change due to high temperature #ifdef REALISTIC |
