From 2f61b8ba107e2de580cde10fadfa4abc03c45ab4 Mon Sep 17 00:00:00 2001
From: Bastien Gorissen <bastien.gorissen@cenaero.be>
Date: Wed, 31 Oct 2012 15:16:51 +0000
Subject: [PATCH] Prevent a crash when optimizing ho pyramids, while a proper
 Jacobian evaluation is implemented.

---
 Geo/MElement.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Geo/MElement.cpp b/Geo/MElement.cpp
index 01d70c6917..ee60c2eed8 100644
--- a/Geo/MElement.cpp
+++ b/Geo/MElement.cpp
@@ -112,6 +112,7 @@ void MElement::scaledJacRange(double &jmin, double &jmax)
 {
   jmin = jmax = 1.0;
 #if defined(HAVE_MESH)
+  if (getType() == TYPE_PYR) return;
   extern double mesh_functional_distorsion(MElement*,double,double);
   if (getPolynomialOrder() == 1) return;
   const bezierBasis *jac = getJacobianFuncSpace()->bezier;
-- 
GitLab