atrstm

Load and structure a combustion gas mixture
git clone git://git.meso-star.fr/atrstm.git
Log | Files | Refs | README | LICENSE

commit 58bb990d022b57d4ef27735e9c7b7dec9fc901ce
parent f0a8f0da43bd752685471c95f6176c0dba93a74b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 15 Jan 2021 13:45:10 +0100

Set the gas data to 0 during octree building

Diffstat:
Msrc/atrstm_build_octrees.c | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/atrstm_build_octrees.c b/src/atrstm_build_octrees.c @@ -65,7 +65,7 @@ check_build_octrees_args(const struct build_octrees_args* args) && args->grid_max_definition[0] && args->grid_max_definition[1] && args->grid_max_definition[2] - && args->optical_thickness_threshold + && args->optical_thickness_threshold >= 0 && (!args->cache.stream || args->cache.name); } @@ -227,10 +227,15 @@ voxelize_partition struct optprops optprops_max; float* vox = part_get_voxel(part, mcode[2]); + /* Currently, gas is not handled */ + optprops_min = OPTPROPS_NULL; + optprops_max = OPTPROPS_NULL; + voxel_commit_optprops_range + (vox, ATRSTM_CPNT_GAS, &optprops_min, &optprops_max); + res = primitive_compute_optprops_range (atrstm, refract_id, &prim, &optprops_min, &optprops_max); if(UNLIKELY(res != RES_OK)) goto error; - voxel_commit_optprops_range (vox, ATRSTM_CPNT_SOOT, &optprops_min, &optprops_max); }