Lines Matching refs:same
37 PetscBool same; in PCLMVMSetUpdateVec() local
42 PetscCall(PetscObjectTypeCompare((PetscObject)pc, PCLMVM, &same)); in PCLMVMSetUpdateVec()
43 if (!same) PetscFunctionReturn(PETSC_SUCCESS); in PCLMVMSetUpdateVec()
66 PetscBool same; in PCLMVMSetMatLMVM() local
71 PetscCall(PetscObjectTypeCompare((PetscObject)pc, PCLMVM, &same)); in PCLMVMSetMatLMVM()
72 if (!same) PetscFunctionReturn(PETSC_SUCCESS); in PCLMVMSetMatLMVM()
73 PetscCall(PetscObjectBaseTypeCompare((PetscObject)B, MATLMVM, &same)); in PCLMVMSetMatLMVM()
74 …PetscCheck(same, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_WRONG, "Matrix must be an MATLMVM… in PCLMVMSetMatLMVM()
98 PetscBool same; in PCLMVMGetMatLMVM() local
102 PetscCall(PetscObjectTypeCompare((PetscObject)pc, PCLMVM, &same)); in PCLMVMGetMatLMVM()
103 …PetscCheck(same, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_WRONG, "PC must be a PCLMVM type.… in PCLMVMGetMatLMVM()
110 PetscCall(PetscObjectBaseTypeCompare((PetscObject)J, MATLMVM, &same)); in PCLMVMGetMatLMVM()
111 if (same) *B = J; in PCLMVMGetMatLMVM()
144 PetscBool same; in PCLMVMSetIS() local
149 PetscCall(PetscObjectTypeCompare((PetscObject)pc, PCLMVM, &same)); in PCLMVMSetIS()
150 if (!same) PetscFunctionReturn(PETSC_SUCCESS); in PCLMVMSetIS()
171 PetscBool same; in PCLMVMClearIS() local
175 PetscCall(PetscObjectTypeCompare((PetscObject)pc, PCLMVM, &same)); in PCLMVMClearIS()
176 if (!same) PetscFunctionReturn(PETSC_SUCCESS); in PCLMVMClearIS()