getfem-commits
[Top][All Lists]
Advanced

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

[Getfem-commits] (no subject)


From: Markus Bürg
Subject: [Getfem-commits] (no subject)
Date: Wed, 13 Sep 2017 07:45:07 -0400 (EDT)

branch: mb_race_condition_convex_of_reference
commit 05ffad516927d312c99f7a4cb918c271c1fe810f
Author: mb <address@hidden>
Date:   Wed Sep 13 13:45:02 2017 +0200

    Also for 0-dimensional convex, auto_basic has to be true.
---
 src/bgeot_convex_ref.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bgeot_convex_ref.cc b/src/bgeot_convex_ref.cc
index 7bc50f6..c83c5ca 100644
--- a/src/bgeot_convex_ref.cc
+++ b/src/bgeot_convex_ref.cc
@@ -159,9 +159,9 @@ namespace bgeot {
       return e / sqrt(scalar_type(pt.size()));
     }
     K_simplex_of_ref_(dim_type NN, short_type KK) :
-      convex_of_reference(simplex_structure(NN, KK), KK == 1)
+      convex_of_reference(simplex_structure(NN, KK), (KK == 1) || (NN == 0))
     {
-      if (KK != 1) basic_convex_ref_ = simplex_of_reference(NN, 1);
+      if ((KK != 1) && (NN != 0)) basic_convex_ref_ = simplex_of_reference(NN, 
1);
       size_type R = cvs->nb_points();
       convex<base_node>::points().resize(R);
       normals_.resize(NN+1);



reply via email to

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