commit ad4bda46abdd98d031a55816d999de6575044a29
parent f299f0f58f7be49be7ba083e27c704a5a6731068
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 25 Jan 2021 21:26:18 +0100
Fix an issue in the voxelization of a partition
The morton code used to fetch the voxel was wrong: it encoded the Z
coordinate coordinate only.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/atrstm_setup_octrees.c b/src/atrstm_setup_octrees.c
@@ -225,7 +225,7 @@ voxelize_partition
if(intersect != SUVM_INTERSECT_NONE) {
struct radcoefs radcoefs_min;
struct radcoefs radcoefs_max;
- float* vox = part_get_voxel(part, mcode[2]);
+ float* vox = part_get_voxel(part, mcode[0]);
/* Currently, gas is not handled */
radcoefs_min = RADCOEFS_NULL;