From 0bc49c19bdaaa04b1332ccdadb32b94f442897d0 Mon Sep 17 00:00:00 2001 From: Philippe Delandmeter <philippe.delandmeter@uclouvain.be> Date: Thu, 17 Oct 2013 07:59:04 +0000 Subject: [PATCH] MPrism : fix a bug in a recent commit --- Geo/MPrism.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/MPrism.h b/Geo/MPrism.h index d304d810ea..2b14f051da 100644 --- a/Geo/MPrism.h +++ b/Geo/MPrism.h @@ -416,14 +416,14 @@ class MPrismN : public MPrism { if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0) return 0; 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 { if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0) return 0; 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 void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n); -- GitLab