Skip to main content
Ctrl+K
PETSc 3.23.1 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
  • PFCreate

PFCreate#

Creates a mathematical function context.

Synopsis#

#include "petscpf.h" 
PetscErrorCode PFCreate(MPI_Comm comm, PetscInt dimin, PetscInt dimout, PF *pf)

Collective

Input Parameters#

  • comm - MPI communicator

  • dimin - dimension of the space you are mapping from

  • dimout - dimension of the space you are mapping to

Output Parameter#

  • pf - the function context

See Also#

PF, PFSet(), PFApply(), PFDestroy(), PFApplyVec()

Level#

developer

Location#

src/vec/pf/interface/pf.c

Examples#

src/snes/tutorials/ex22.c

Implementations#

PFCreate_Constant() in src/vec/pf/impls/constant/const.c
PFCreate_Quick(PF pf, PetscErrorCode (*function)() in src/vec/pf/impls/constant/const.c
PFCreate_Identity() in src/vec/pf/impls/constant/const.c
PFCreate_Matlab() in src/vec/pf/impls/matlab/cmatlab.c
PFCreate_String() in src/vec/pf/impls/string/cstring.c


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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
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-04-30T13:10:40-0500 (v3.23.1).