Skip to content
Snippets Groups Projects
Commit 4f09edba authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

gauss quadrature prism : allow higher order

parent 80360fb2
No related branches found
No related tags found
No related merge requests found
......@@ -10,14 +10,16 @@
IntPt *getGQPriPts(int order);
int getNGQPriPts(int order);
IntPt * GQP[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
IntPt * GQP[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
IntPt *getGQPriPts(int order)
{
int nLin = (order+3)/2;
int nTri = getNGQTPts(order);
int n = nLin*nTri;
int index = n;
int index = order;
if (order >= sizeof(GQP) / sizeof(IntPt*))
Msg::Fatal("Increase size of GQP in gauss quadrature prism");
if(!GQP[index])
{
double *linPt,*linWt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment