stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit b5e2346ad6f7bda415c3250f1da75f6270f1f841
parent 3df4ba9644a28577732850e6e7d175b2af7d684a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  3 May 2018 16:09:57 +0200

Fix the sdis_solve_camera function

An error occured when the image height was not a multiple of the tile
size.

Diffstat:
Msrc/sdis_solve.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sdis_solve.c b/src/sdis_solve.c @@ -511,7 +511,7 @@ sdis_solve_camera tile_org[0] *= TILE_SIZE; tile_org[1] *= TILE_SIZE; tile_sz[0] = MMIN(TILE_SIZE, width - tile_org[0]); - tile_sz[1] = MMIN(TILE_SIZE, width - tile_org[1]); + tile_sz[1] = MMIN(TILE_SIZE, height - tile_org[1]); /* Fetch the accumulations buffer */ accums = darray_accum_data_get(tiles+ithread);