Skip to main content
Ctrl+K
PETSc v3.23.6-609-gbdeb5a2b66755 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscDSGetEx...

PetscDSGetExactSolution#

Get the pointwise exact solution function for a given test field

Synopsis#

#include "petscds.h" 
PetscErrorCode PetscDSGetExactSolution(PetscDS prob, PetscInt f, PetscPointExactSolutionFn **sol, void **ctx)

Not Collective

Input Parameters#

  • prob - The PetscDS

  • f - The test field number

Output Parameters#

  • sol - exact solution function for the test field, see PetscPointExactSolutionFn

  • ctx - exact solution context

See Also#

PetscDS, PetscPointExactSolutionFn, PetscDSSetExactSolution(), PetscDSGetExactSolutionTimeDerivative()

Level#

intermediate

Location#

src/dm/dt/interface/dtds.c

Examples#

src/ts/tutorials/ex53.c
src/snes/tutorials/ex13.c
src/ts/tutorials/ex46.c
src/snes/tutorials/ex76.c
src/tao/tutorials/ex2.c
src/ts/tutorials/ex47.c
src/snes/tutorials/ex71.c
src/tao/tutorials/ex1.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex69.c


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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameters
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-09-20T03:47:04-0500 (v3.23.6-609-gbdeb5a2b66755).