branch: devel-logari81
commit 2a0d1836a70dcb67df9a353bfa7a8881e815f57b
Author: Konstantinos Poulios <logar...@gmail.com>
Date:   Sun Aug 6 14:41:54 2017 +0200

    fix bug in dof enumeration (causing invalid merging of dofs in very small 
elements)
---
 src/getfem_mesh_fem.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/getfem_mesh_fem.cc b/src/getfem_mesh_fem.cc
index 14bf08f..c3b4927 100644
--- a/src/getfem_mesh_fem.cc
+++ b/src/getfem_mesh_fem.cc
@@ -360,7 +360,7 @@ namespace getfem {
            bmax[d] = std::max(bmax[d], pt[d]);
          }
        }       
-       elt_car_sizes[cv] = gmm::vect_dist2(bmin, bmax);
+       elt_car_sizes[cv] = gmm::vect_dist2_sqr(bmin, bmax);
       }
     }
 

Reply via email to