#include "petscdt.h" PetscErrorCode PetscGaussLobattoLegendreElementGradientCreate(PetscInt n,PetscReal *nodes,PetscReal *weights,PetscReal ***AA,PetscReal ***AAT)Not Collective
n | - the number of GLL nodes | |
nodes | - the GLL nodes | |
weights | - the GLL weights | |
AA | - the stiffness element | |
AAT | - the transpose of AA (pass in NULL if you do not need this array) |
You can access entries in these arrays with AA[i][j] but in memory it is stored in contiguous memory, row oriented