htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit ee7c9e6439f70ec2a427f9f2a2321cc6a6fa3379
parent 2e4224917fcecbd4a0ee68580ce312a665e16b87
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 15 Oct 2018 11:41:19 +0200

Fix the buffer allocation

The allocated memory space were wrongly computed

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

diff --git a/src/htrdr_buffer.c b/src/htrdr_buffer.c @@ -105,7 +105,7 @@ htrdr_buffer_create buf->align = align; buf->htrdr = htrdr; - memsz = buf->pitch * buf->height * buf->elmtsz; + memsz = buf->pitch * buf->height; buf->mem = MEM_ALLOC_ALIGNED(htrdr->allocator, memsz, align); if(!buf->mem) { res = RES_MEM_ERR;