rnatm

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

commit f1adca8ea68930072871f4674d4eb5319b89e031
parent 20b47b39738400cabb3dc3c246639a8a1f5fb4b0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 26 Jul 2022 21:06:28 +0200

Fix a comment

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

diff --git a/src/rnatm_octree.c b/src/rnatm_octree.c @@ -491,12 +491,12 @@ vx_get(const size_t xyz[3], const uint64_t mcode, void* dst, void* context) ASSERT(xyz && dst && ctx); (void)xyz; - /* Retrieve the partition's morton id the voxel's morton id in the partition - * from the morton code of the voxel in the whole octree. Note that, like - * voxels, partitions are sorted in morton order. Therefore, the partition's - * morton id is encoded in the most significant bits of the voxel's morton - * code, while the voxel's morton id in the partition is stored in its least - * significant bits */ + /* Retrieve the partition's morton id and the voxel's morton id in the + * partition from the morton code of the voxel in the whole octree. Note + * that, like voxels, partitions are sorted in morton order. Therefore, the + * partition's morton id is encoded in the most significant bits of the + * voxel's morton code, while the voxel's morton id in the partition is + * stored in its least significant bits */ log2_part_def = log2i((int)pool_get_partition_definition(ctx->pool)); ipart = (mcode >> (log2_part_def*3)); ivx = (mcode & (BIT_U64(log2_part_def*3)-1));