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 94d10b114e25d798f32cbf52813e7acd0795f3bd
Author: mb <address@hidden>
Date:   Wed Sep 13 13:43:24 2017 +0200

    Revert "1D simplices should not have faces"
    
    This reverts commit 84b5d1405eaaa3f1ce0c6c8960cfb4161ff8568c.
---
 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 b6af26c..a419e44 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 > 1 ? nc+1 : 0);
+    p->nbf = short_type(nc ? 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]