From a342e4a244dbfff4ac9038656394cea92d2687d9 Mon Sep 17 00:00:00 2001 From: Boris Sedji <sedji.boris@hotmail.com> Date: Thu, 3 Jun 2010 07:40:27 +0000 Subject: [PATCH] "_orig" doesn't exist when a cut model is read from a .msh file --- Geo/MElementCut.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Geo/MElementCut.h b/Geo/MElementCut.h index 359fb2aabf..a192631574 100644 --- a/Geo/MElementCut.h +++ b/Geo/MElementCut.h @@ -237,15 +237,15 @@ class MPolygon : public MElement { } virtual const polynomialBasis* getFunctionSpace(int order=-1) const { - return _orig->getFunctionSpace(order); + if (_orig) return _orig->getFunctionSpace(order); } virtual void getShapeFunctions(double u, double v, double w, double s[], int o) { - _orig->getShapeFunctions(u, v, w, s, o); + if (_orig) _orig->getShapeFunctions(u, v, w, s, o); } virtual void getGradShapeFunctions(double u, double v, double w, double s[][3], int o) { - _orig->getGradShapeFunctions(u, v, w, s, o); + if (_orig) _orig->getGradShapeFunctions(u, v, w, s, o); } // the parametric coordinates of the polygon are // the coordinates in the local parent element. -- GitLab