rnatm

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

commit ebfc97ea4433deb355742718438259ef9f1dbe4b
parent 1555c030e0f98e7516635385563cbf71b4ca616d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 26 Aug 2022 12:08:35 +0200

Fix how partitions are cleared before their voxelization

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

diff --git a/src/rnatm_octree.c b/src/rnatm_octree.c @@ -655,8 +655,6 @@ voxelize_tetra volume = darray_aerosol_cdata_get(&atm->aerosols)[cpnt].volume; } - partition_clear_voxels(args->part); - FOR_EACH(i, 0, darray_size_t_size_get(args->tetra_ids)) { struct suvm_primitive tetra; struct suvm_polyhedron poly; @@ -785,6 +783,8 @@ voxelize_partition(struct rnatm* atm, const struct voxelize_args* args) res_T res = RES_OK; ASSERT(atm && check_voxelize_args(args) == RES_OK); + partition_clear_voxels(args->part); + /* Voxelize the gas */ res = voxelize_partition_component(atm, args, GAS); if(res != RES_OK) goto error;