Lines Matching refs:nrhs
11 PetscInt m, n, nrhs, M, N, i, Istart, Iend, Ii, j, J, test; in main() local
76 nrhs = N; in main()
77 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nrhs", &nrhs, NULL)); in main()
79 PetscCall(MatSetSizes(C, m, PETSC_DECIDE, PETSC_DECIDE, nrhs)); in main()
90 …s: nrhs %" PetscInt_FMT ", size mat %" PetscInt_FMT " x %" PetscInt_FMT "\n", solver, nrhs, M, N)); in main()
131 for (i = 0; i < nrhs; i++) { in main()
140 …intf(PETSC_COMM_SELF, " \n(2) first %" PetscInt_FMT " columns of inv(A) with dense RHS:\n", nrhs)); in main()
159 PetscCall(MatSetSizes(spRHST, nrhs, M, PETSC_DECIDE, PETSC_DECIDE)); in main()
168 for (i = 0; i < nrhs; i++) PetscCall(MatSetValues(spRHST, 1, &i, 1, &i, &v, INSERT_VALUES)); in main()
176 …ntf(PETSC_COMM_SELF, " \n(3) first %" PetscInt_FMT " columns of inv(A) with sparse RHS:\n", nrhs)); in main()
190 if (nrhs == N) { /* mumps requires nrhs = n */ in main()