#include "petscsys.h" PetscErrorCode PetscRandomSetFromOptions(PetscRandom rnd)Collective on PetscRandom
rnd | - The random number generator context |
-random_seed <integer> | - provide a seed to the random number generater | |
-random_no_imaginary_part | - makes the imaginary part of the random number zero, this is useful when you want the same code to produce the same result when run with real numbers or complex numbers for regression testing purposes |