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/tao/bound/tutorials/plate2.c
src/dm/tutorials/swarm_ex3.c
src/dm/field/tutorials/ex1.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/vec/vec/tutorials/ex19.c
src/tao/tutorials/ex4.c
src/vec/vec/tutorials/performance.c
src/tao/unconstrained/tutorials/minsurf2.c
src/tao/bound/tutorials/plate2f.F90
src/vec/vec/utils/tagger/tutorials/ex1.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