#include "petscds.h" PetscErrorCode PetscDSSetExactSolution(PetscDS prob, PetscInt f, PetscErrorCode (*sol)(PetscInt dim, PetscReal t, const PetscReal x[], PetscInt Nc, PetscScalar u[], void *ctx), void *ctx)Not collective
prob | - The PetscDS | |
f | - The test field number | |
sol | - solution function for the test fields | |
ctx | - solution context or NULL |
sol(PetscInt dim, PetscReal t, const PetscReal x[], PetscInt Nc, PetscScalar u[], void *ctx)
dim | - the spatial dimension | |
t | - current time | |
x | - coordinates of the current point | |
Nc | - the number of field components | |
u | - the solution field evaluated at the current point | |
ctx | - a user context |