#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMComputeExactSolution(DM dm, PetscReal time, Vec u, Vec u_t)Collective on DM
dm | - The DM | |
time | - The time |
u | - The vector will be filled with exact solution values, or NULL | |
u_t | - The vector will be filled with the time derivative of exact solution values, or NULL |
Note: The user must call PetscDSSetExactSolution() beforehand