Home
last modified time | relevance | path

Searched refs:num_rhs (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ksp/ksp/tutorials/
H A Dex72.c332 PetscInt num_rhs = 1; in main() local
333 PetscCall(PetscOptionsGetInt(NULL, NULL, "-num_rhs", &num_rhs, NULL)); in main()
336 while (num_rhs--) { in main()
337 if (num_rhs == 1) PetscCall(VecSet(x, 0.0)); in main()
/petsc/src/ksp/ksp/tests/
H A Dex30.c280 PetscInt num_rhs = 1; in main() local
281 PetscCall(PetscOptionsGetInt(NULL, NULL, "-num_rhs", &num_rhs, NULL)); in main()
283 while (num_rhs--) PetscCall(KSPSolve(ksp, b, x)); in main()