Searched refs:diagsqrt (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/ksp/pc/impls/jacobi/ |
| H A D | jacobi.c | 57 Vec diagsqrt; /* vector containing the reciprocals of the square roots of member 144 static PetscErrorCode PCJacobiGetDiagonal_Jacobi(PC pc, Vec diag, Vec diagsqrt) in PCJacobiGetDiagonal_Jacobi() argument 150 …PetscCheck(j->diag || j->diagsqrt, comm, PETSC_ERR_ARG_WRONGSTATE, "Jacobi diagonal has not been c… in PCJacobiGetDiagonal_Jacobi() 152 …PetscCheck(!diagsqrt || (diagsqrt && j->diagsqrt), comm, PETSC_ERR_ARG_WRONGSTATE, "Jacobi diagona… in PCJacobiGetDiagonal_Jacobi() 155 if (diagsqrt) PetscCall(VecCopy(j->diagsqrt, diagsqrt)); in PCJacobiGetDiagonal_Jacobi() 175 Vec diag, diagsqrt; in PCSetUp_Jacobi() local 201 diagsqrt = jac->diagsqrt; in PCSetUp_Jacobi() 269 if (diagsqrt) { in PCSetUp_Jacobi() 272 PetscCall(VecLockReadPop(diagsqrt)); in PCSetUp_Jacobi() 275 PetscCall(MatGetDiagonal(pc->pmat, diagsqrt)); in PCSetUp_Jacobi() [all …]
|