stardis-solver

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

commit 906524b6dfc4775ad01e1b56b71d6bacf6fffd07
parent b5ee8e8f4e662d542075930641ab1ef8e8291e5f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 11 Oct 2022 11:06:51 +0200

Review the tmpfile call when creating the green function

Diffstat:
Msrc/sdis_green.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/sdis_green.c b/src/sdis_green.c @@ -1349,6 +1349,9 @@ green_function_create green->npaths_valid = SIZE_MAX; green->npaths_invalid = SIZE_MAX; + /* TODO replace the tmpfile. tmpfile can only be called a limited number of + * times while one could create a huge amount of green functions at the same + * time (e.g. for image rendering) */ green->rng_state = tmpfile(); if(!green->rng_state) { res = RES_IO_ERR;