rnatm

Load and structure data describing an atmosphere
git clone git://git.meso-star.fr/rnatm.git
Log | Files | Refs | README | LICENSE

commit bb7dfd122f685144a53faa396b0cda4546aadb6e
parent d07340157b5607ac908287bb18890388324883cf
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 28 Oct 2022 18:03:00 +0200

Flush the storage stream once the octrees are built

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

diff --git a/src/rnatm_octree.c b/src/rnatm_octree.c @@ -1111,6 +1111,8 @@ finalize_storage(struct rnatm* atm, const fpos_t* toc) res = write_octrees_storage_toc(atm, atm->octrees_storage); if(res != RES_OK) goto exit; + CHK(fflush(atm->octrees_storage) == 0); + exit: return res; error: