getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Yves Renard
Subject: [Getfem-commits] (no subject)
Date: Sun, 24 Dec 2017 08:45:35 -0500 (EST)

branch: mb_race_condition_convex_of_reference
commit 84b5d1405eaaa3f1ce0c6c8960cfb4161ff8568c
Author: mb <address@hidden>
Date:   Tue Sep 12 16:42:34 2017 +0200

    1D simplices should not have faces
---
 src/bgeot_convex_structure.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bgeot_convex_structure.cc b/src/bgeot_convex_structure.cc
index a419e44..b6af26c 100644
--- a/src/bgeot_convex_structure.cc
+++ b/src/bgeot_convex_structure.cc
@@ -129,7 +129,7 @@ namespace bgeot {
     auto p = std::make_shared<simplex_structure_>();
     pconvex_structure pcvs = pconvex_structure(p);
     p->Nc = dim_type(nc); p->nbpt = short_type(nc+1);
-    p->nbf = short_type(nc ? nc+1 : 0);
+    p->nbf = short_type(nc > 1 ? nc+1 : 0);
     p->faces_struct.resize(p->nbf);
     p->faces.resize(p->nbf);
     p->dir_points_.resize(p->Nc + 1);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]