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
  • PetscRandomDestroy

PetscRandomDestroy#

Destroys a PetscRandom object that was created by PetscRandomCreate().

Synopsis#

#include "petscsys.h" 
PetscErrorCode PetscRandomDestroy(PetscRandom *r)

Collective

Input Parameter#

  • r - the random number generator object

See Also#

PetscRandom, PetscRandomGetValue(), PetscRandomCreate(), VecSetRandom()

Level#

intermediate

Location#

src/sys/classes/random/interface/randomc.c

Examples#

src/dm/tutorials/swarm_ex3.c
src/ksp/ksp/tutorials/ex18.c
src/ksp/ksp/tutorials/ex11.c
src/dm/field/tutorials/ex1.c
src/ksp/ksp/tutorials/ex5.c
src/ksp/ksp/tutorials/ex21.c
src/ksp/ksp/tutorials/ex60.c
src/ksp/ksp/tutorials/ex46.c
src/ksp/ksp/tutorials/ex59.c
src/ksp/ksp/tutorials/ex81.c

Implementations#

PetscRandomDestroy_CURAND() in src/sys/classes/random/impls/curand/curand.c
PetscRandomDestroy_Rander48() in src/sys/classes/random/impls/rander48/rander48.c
PetscRandomDestroy_Random123() in src/sys/classes/random/impls/random123/random123.c


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

On this page
  • Synopsis
  • Input 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).