star-uvm

Spatial structuring of unstructured volumetric meshes
git clone git://git.meso-star.fr/star-uvm.git
Log | Files | Refs | README | LICENSE

commit e87887cd5e077313b4a59195f487118def1440bc
parent 4bc52ec46c917821897244cbb059ca4438af29f5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 12 Oct 2020 11:10:56 +0200

Fix an assert in volume_get_tetrahedron_normal

Diffstat:
Msrc/suvm_volume.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/suvm_volume.h b/src/suvm_volume.h @@ -150,7 +150,7 @@ volume_get_tetrahedron_normal if(!darray_float_size_get(&vol->normals)) { volume_compute_tetrahedron_normal(vol, itetra, ifacet, normal); } else { - ASSERT(id + 3 < darray_float_size_get(&vol->normals)); + ASSERT(id + 3 <= darray_float_size_get(&vol->normals)); normal[0] = darray_float_cdata_get(&vol->normals)[id+0]; normal[1] = darray_float_cdata_get(&vol->normals)[id+1]; normal[2] = darray_float_cdata_get(&vol->normals)[id+2];