petsc-3.11.4 2019-09-28
Report Typos and Errors

PetscRandomDestroy

Destroys a context that has been formed by PetscRandomCreate().

Synopsis

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

Intput Parameter

r -the random number generator context

See Also

PetscRandomGetValue(), PetscRandomCreate(), VecSetRandom()

Level

intermediate

Location

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

Examples

src/sys/classes/random/examples/tutorials/ex1.c.html
src/sys/classes/random/examples/tutorials/ex2.c.html
src/vec/vec/utils/tagger/examples/tutorials/ex1.c.html
src/mat/examples/tutorials/ex2.c.html
src/dm/examples/tutorials/swarm_ex3.c.html
src/dm/field/examples/tutorials/ex1.c.html
src/ksp/pc/examples/tutorials/ex3.c.html
src/ksp/ksp/examples/tutorials/ex5.c.html
src/ksp/ksp/examples/tutorials/ex11.c.html
src/ksp/ksp/examples/tutorials/ex18.c.html
src/ksp/ksp/examples/tutorials/ex46.c.html

Implementations

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