PetscDSGetEvaluationArrays#

Get scratch arrays used to evaluate fields, time derivatives, and field gradients at quadrature points.

Synopsis#

#include "petscds.h" 
PetscErrorCode PetscDSGetEvaluationArrays(PetscDS prob, PetscScalar *u[], PetscScalar *u_t[], PetscScalar *u_x[])

Not Collective

Input Parameter#

Output Parameters#

  • u - array for the field values, or NULL if not needed

  • u_t - array for the field time derivatives, or NULL if not needed

  • u_x - array for the field gradients, 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, PetscDSGetWeakFormArrays(), PetscDSGetWorkspace()

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