PetscDSGetWorkspace#

Get scratch storage used during discretization computations.

Synopsis#

#include "petscds.h" 
PetscErrorCode PetscDSGetWorkspace(PetscDS prob, PetscReal **x, PetscScalar **basisReal, PetscScalar **basisDerReal, PetscScalar **testReal, PetscScalar **testDerReal)

Not Collective

Input Parameter#

Output Parameters#

  • x - array for real-valued quadrature point coordinates, or NULL if not needed

  • basisReal - array for the real-valued basis function values, or NULL if not needed

  • basisDerReal - array for the real-valued basis function derivatives, or NULL if not needed

  • testReal - array for the real-valued test function values, or NULL if not needed

  • testDerReal - array for the real-valued test function derivatives, or NULL if not needed

Note#

The returned arrays are owned by the PetscDS and must not be freed by the caller.

See Also#

PetscDS, PetscDSGetEvaluationArrays(), PetscDSGetWeakFormArrays()

Level#

developer

Location#

src/dm/dt/interface/dtds.c


Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages