Skip to content
Snippets Groups Projects
Commit a342e4a2 authored by Boris Sedji's avatar Boris Sedji
Browse files

"_orig" doesn't exist when a cut model is read from a .msh file

parent c621240e
No related branches found
No related tags found
No related merge requests found
...@@ -237,15 +237,15 @@ class MPolygon : public MElement { ...@@ -237,15 +237,15 @@ class MPolygon : public MElement {
} }
virtual const polynomialBasis* getFunctionSpace(int order=-1) const 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) 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) 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 parametric coordinates of the polygon are
// the coordinates in the local parent element. // the coordinates in the local parent element.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment