18 const int nodesPerAxis = order+1;
20 const int nodesPerCell = nodesPerAxis * nodesPerAxis;
22 const int nodesPerCell = nodesPerAxis * nodesPerAxis * nodesPerAxis;
24 const int nodesPerFace = nodesPerCell/nodesPerAxis;
27 double cellQin[2*nodesPerCell];
28 for(
int i=0; i<2*nodesPerCell; i++){
29 cellQin[i] = i%2==0 ? 1.0 : -1.0;
33 double QxL[2*nodesPerFace*2];
34 double QxR[2*nodesPerFace*2];
35 double QyL[2*nodesPerFace*2];
36 double QyR[2*nodesPerFace*2];
37 double QzL[2*nodesPerFace*2];
38 double QzR[2*nodesPerFace*2];
40 for(
int i=0; i<2*nodesPerFace*2;i++){
151 double QIn[] = {0.1,0.2,0.3,0.4,0.5};
152 double leftQ[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
153 double rightQ[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
154 double bottomQ[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
155 double topQ[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
157 double frontQ[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
158 double backQ[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
void projectVolumetricDataOntoFaces(const double *__restrict__ cellQ, int order, int unknowns, int auxiliaryVariables, const double *const __restrict__ BasisFunctionValuesLeft, double *const __restrict__ faceQLeft, double *const __restrict__ faceQRight, double *const __restrict__ faceQBottom, double *const __restrict__ faceQUp)
Take polynomial within cell and project it onto the faces.