Skip to content
Snippets Groups Projects
Commit da5720f8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix face vertices on quad faces
parent c5a3ada6
No related branches found
No related tags found
No related merge requests found
// $Id: HighOrder.cpp,v 1.22 2008-02-21 13:44:56 geuzaine Exp $ // $Id: HighOrder.cpp,v 1.23 2008-02-27 12:39:08 geuzaine Exp $
// //
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// //
...@@ -389,7 +389,8 @@ void getFaceVertices(GFace *gf, MElement *ele, std::vector<MVertex*> &vf, ...@@ -389,7 +389,8 @@ void getFaceVertices(GFace *gf, MElement *ele, std::vector<MVertex*> &vf,
faceContainer &faceVertices, bool linear, int nPts = 1) faceContainer &faceVertices, bool linear, int nPts = 1)
{ {
Double_Matrix points; Double_Matrix points;
int start; int start = 0;
switch (nPts){ switch (nPts){
case 2 : case 2 :
points = gmshFunctionSpaces::find(MSH_TRI_10).points; points = gmshFunctionSpaces::find(MSH_TRI_10).points;
...@@ -404,7 +405,8 @@ void getFaceVertices(GFace *gf, MElement *ele, std::vector<MVertex*> &vf, ...@@ -404,7 +405,8 @@ void getFaceVertices(GFace *gf, MElement *ele, std::vector<MVertex*> &vf,
start = 15; start = 15;
break; break;
default : default :
throw; // do nothing (e.g. for quad faces)
break;
} }
for(int i = 0; i < ele->getNumFaces(); i++){ for(int i = 0; i < ele->getNumFaces(); i++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment