diff options
| author | jacob1 <jfu614@gmail.com> | 2012-12-18 02:11:33 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2012-12-18 02:11:33 (GMT) |
| commit | b5de23433d6da22552a7927b5f70d2555af3ad38 (patch) | |
| tree | 3d38f437df87678bdcc61625828390c6b6472497 /src/simulation/Air.cpp | |
| parent | f68cded2d2bd35989c5d81e710293ca2c96be36e (diff) | |
| download | powder-b5de23433d6da22552a7927b5f70d2555af3ad38.zip powder-b5de23433d6da22552a7927b5f70d2555af3ad38.tar.gz | |
fix '=' resetting air heat, fix uninitialized ambient heat setting, a few LOLZ / LOVE changes
Diffstat (limited to 'src/simulation/Air.cpp')
| -rw-r--r-- | src/simulation/Air.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index 10c4569..a6bd16c 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -41,12 +41,16 @@ void Air::make_kernel(void) //used for velocity void Air::Clear() { - std::fill(&hv[0][0], &hv[0][0]+((XRES/CELL)*(YRES/CELL)), 273.15f + 22.0f); std::fill(&pv[0][0], &pv[0][0]+((XRES/CELL)*(YRES/CELL)), 0.0f); std::fill(&vy[0][0], &vy[0][0]+((XRES/CELL)*(YRES/CELL)), 0.0f); std::fill(&vx[0][0], &vx[0][0]+((XRES/CELL)*(YRES/CELL)), 0.0f); } +void Air::ClearAirH() +{ + std::fill(&hv[0][0], &hv[0][0]+((XRES/CELL)*(YRES/CELL)), 273.15f + 22.0f); +} + void Air::update_airh(void) { int x, y, i, j; |
