Skip to content
Snippets Groups Projects
Commit efc1be48 authored by Brian Helenbrook's avatar Brian Helenbrook
Browse files

Fixed bug in getfacevertices for prism case.

parent 2c107fab
Branches
Tags
No related merge requests found
......@@ -17,6 +17,7 @@
#include "GFaceCompound.h"
#include "GmshMatrix.h"
#include "FunctionSpace.h"
#include <iostream>
#define SQU(a) ((a)*(a))
......@@ -865,6 +866,7 @@ void getFaceVertices(GRegion *gr, MElement *ele,
Double_Matrix points;
int start = 0;
switch (nPts){
......@@ -911,7 +913,7 @@ void getFaceVertices(GRegion *gr, MElement *ele,
else{
std::vector<MVertex*>& vtcs = faceVertices[face];
if(face.getNumVertices() == 3){ // triangles
if(face.getNumVertices() == 3 && nPts > 1){ // triangles
// construct incomplete element to take into account curved edges on surface boundaries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment