Home
last modified time | relevance | path

Searched refs:use_random (Results 1 – 4 of 4) sorted by relevance

/petsc/src/ksp/ksp/tutorials/
H A Dex11.c34 PetscInt dim, i, j, Ii, J, Istart, Iend, n = 6, its, use_random; in main() local
77 if (flg) use_random = 0; in main()
78 else use_random = 1; in main()
79 if (use_random) { in main()
107 if (use_random) PetscCall(PetscRandomGetValue(rctx, &sigma2)); in main()
111 if (use_random) PetscCall(PetscRandomDestroy(&rctx)); in main()
139 if (use_random) { in main()
209 if (use_random) PetscCall(PetscRandomDestroy(&rctx)); in main()
H A Dex11f.F9050 logical use_random
96 use_random = .false.
99 use_random = .true.
127 if (use_random) PetscCallA(PetscRandomGetValue(rctx, sigma2, ierr))
131 if (use_random) PetscCallA(PetscRandomDestroy(rctx, ierr))
155 if (use_random) then
211 if (use_random) PetscCallA(PetscRandomDestroy(rctx, ierr))
/petsc/src/mat/tests/
H A Dex120.c25 PetscInt dim, Ii, J, n = 6, use_random; in main() local
59 if (flg) use_random = 0; in main()
60 else use_random = 1; in main()
61 if (use_random) { in main()
89 if (use_random) PetscCall(PetscRandomGetValue(rctx, &sigma2)); in main()
100 if (use_random) PetscCall(PetscRandomDestroy(&rctx)); in main()
/petsc/src/ksp/ksp/tests/
H A Dex17.c20 PetscInt n = 10, its, dim, p = 1, use_random; in main() local
64 use_random = 1; in main()
68 use_random = 0; in main()
113 if (use_random) PetscCall(PetscRandomDestroy(&rctx)); in main()