From add4ccb0343901dad732ee084359134e20a29810 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 18 Apr 2012 15:11:51 +0100 Subject: [PATCH] TPT: Volume from heat change (for REALISTIC) 290cac8b7e --- src/simulation/Simulation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 0c8797e2c..d466dc42d 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2622,6 +2622,10 @@ void Simulation::update_particles_i(int start, int inc) c_heat = restrict_flt(c_heat, -MAX_TEMP+MIN_TEMP, MAX_TEMP-MIN_TEMP); parts[i].temp += c_heat; hv[y/CELL][x/CELL] -= c_heat; +#ifdef REALISTIC + //Volume increase from heat (temporary) + pv[y/CELL][x/CELL] -= c_heat*0.004; +#endif } c_heat = 0.0f; for (j=0; j<8; j++)