Skip to content
Snippets Groups Projects
Commit 0bc49c19 authored by Philippe Delandmeter's avatar Philippe Delandmeter
Browse files

MPrism : fix a bug in a recent commit

parent 5331a938
No related branches found
No related tags found
No related merge requests found
...@@ -416,14 +416,14 @@ class MPrismN : public MPrism { ...@@ -416,14 +416,14 @@ class MPrismN : public MPrism {
if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0) if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0)
return 0; return 0;
else else
int n = _order-1; return (n-1 + 3*n) * n; {int n = _order-1; return (n-1 + 3*n) * n;}
} }
virtual int getNumVolumeVertices() const virtual int getNumVolumeVertices() const
{ {
if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0) if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0)
return 0; return 0;
else else
int n = _order-1; return n * (n * (n+1) / 2); {int n = _order-1; return n * (n * (n+1) / 2);}
} }
virtual int getNumEdgesRep(); virtual int getNumEdgesRep();
virtual void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n); virtual void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment