From fd09db2345b21632a658d1e7fad6694578ef8274 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 17 Apr 2012 17:32:06 +0100 Subject: [PATCH] TPT: Prevent ambient heat going through walls ccb88b6b3b --- src/simulation/Air.cpp | 21 ++++++++++++--------- src/simulation/Air.h | 1 + 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index 3c88e91bb..ff61bac45 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -39,7 +39,12 @@ void Air::make_kernel(void) //used for velocity void Air::update_airh(void) { int x, y, i, j; - float dh, dx, dy, f, tx, ty; + float odh, dh, dx, dy, f, tx, ty; + for (y=0; y0 && y+j0 && x+i=2 && i=2 && j