star-uvm

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

commit 98483b5bb3fd679fab9114810d659d3527a4112d
parent e87887cd5e077313b4a59195f487118def1440bc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 12 Oct 2020 13:28:03 +0200

Fix intersect_leaf in suvm_volume_at function

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

diff --git a/src/suvm_volume_at.c b/src/suvm_volume_at.c @@ -82,7 +82,7 @@ intersect_leaf /* Fetch the two remaining vertices (i.e. the second and third ones) */ v1 = darray_float_cdata_get(&vol->positions) + tetra[1]*3; - v2 = darray_float_cdata_get(&vol->positions) + tetra[1]*3; + v2 = darray_float_cdata_get(&vol->positions) + tetra[2]*3; /* Distance of tetrahedron corners to their opposite face */ h0 = f3_dot(n0, f3_sub(p, v3, v0));