Home
last modified time | relevance | path

Searched refs:sametype (Results 1 – 14 of 14) sorted by relevance

/petsc/src/mat/interface/
H A Dmatreg.c109 …PetscBool sametype, found, subclass = PETSC_FALSE, matMPI = PETSC_FALSE, requestSeq = PETSC_FALS… in MatSetType() local
117 PetscCall(PetscObjectTypeCompare((PetscObject)mat, matype, &sametype)); in MatSetType()
118 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatSetType()
140 PetscCall(PetscObjectTypeCompare((PetscObject)mat, matype, &sametype)); in MatSetType()
141 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatSetType()
152 PetscCall(PetscStrbeginswith(names->rname, "sell", &sametype)); in MatSetType()
153 …if (sametype) { /* mattype is MATSELL or its subc… in MatSetType()
H A Dmatrix.c4350 PetscBool sametype, issame, flg; in MatConvert() local
4366 PetscCall(PetscObjectTypeCompare((PetscObject)mat, newtype, &sametype)); in MatConvert()
4374 if ((reuse == MAT_INPLACE_MATRIX) && (issame || sametype)) { in MatConvert()
4375 …Info(mat, "Early return for inplace %s %d %d\n", ((PetscObject)mat)->type_name, sametype, issame)); in MatConvert()
4384 if ((sametype || issame) && (reuse == MAT_INITIAL_MATRIX) && mat->ops->duplicate) { in MatConvert()
4385 …alling duplicate for initial matrix %s %d %d\n", ((PetscObject)mat)->type_name, sametype, issame)); in MatConvert()
/petsc/src/mat/tests/
H A Dmmloader.c11 PetscBool sametype, symmetric = PETSC_FALSE, skew = PETSC_FALSE; in MatCreateFromMTX() local
57 PetscCall(PetscObjectTypeCompare((PetscObject)*A, MATSEQSBAIJ, &sametype)); in MatCreateFromMTX()
58 …PetscCheck(sametype, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Only AIJ and SBAIJ are supported. Your… in MatCreateFromMTX()
63 PetscCall(PetscObjectTypeCompare((PetscObject)*A, MATSEQAIJ, &sametype)); in MatCreateFromMTX()
64 …PetscCheck(sametype, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Only AIJ and SBAIJ are supported. Your… in MatCreateFromMTX()
/petsc/src/mat/impls/aij/seq/crl/
H A Dcrl.c147 PetscBool sametype; in MatConvert_SeqAIJ_SeqAIJCRL() local
151 PetscCall(PetscObjectTypeCompare((PetscObject)A, type, &sametype)); in MatConvert_SeqAIJ_SeqAIJCRL()
152 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatConvert_SeqAIJ_SeqAIJCRL()
/petsc/src/mat/impls/aij/seq/aijsell/
H A Daijsell.c207 PetscBool sametype; in MatConvert_SeqAIJ_SeqAIJSELL() local
212 PetscCall(PetscObjectTypeCompare((PetscObject)A, type, &sametype)); in MatConvert_SeqAIJ_SeqAIJSELL()
213 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatConvert_SeqAIJ_SeqAIJSELL()
/petsc/src/mat/impls/baij/seq/baijmkl/
H A Dbaijmkl.c390 PetscBool sametype; in MatConvert_SeqBAIJ_SeqBAIJMKL() local
395 PetscCall(PetscObjectTypeCompare((PetscObject)A, type, &sametype)); in MatConvert_SeqBAIJ_SeqBAIJMKL()
396 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatConvert_SeqBAIJ_SeqBAIJMKL()
/petsc/src/mat/impls/aij/seq/aijperm/
H A Daijperm.c603 PetscBool sametype; in MatConvert_SeqAIJ_SeqAIJPERM() local
607 PetscCall(PetscObjectTypeCompare((PetscObject)A, type, &sametype)); in MatConvert_SeqAIJ_SeqAIJPERM()
608 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatConvert_SeqAIJ_SeqAIJPERM()
/petsc/src/tao/matrix/
H A Dadamat.c261 PetscBool sametype, issame, isdense, isseqdense; in MatConvert_ADA() local
268 PetscCall(PetscObjectTypeCompare((PetscObject)mat, newtype, &sametype)); in MatConvert_ADA()
273 if (sametype || issame) { in MatConvert_ADA()
/petsc/src/mat/utils/
H A Daxpy.c100 PetscBool sametype, transpose; in MatAXPY() local
120 PetscCall(PetscObjectObjectTypeCompare((PetscObject)X, (PetscObject)Y, &sametype)); in MatAXPY()
122 if (Y->ops->axpy && (sametype || X->ops->axpy == Y->ops->axpy)) { in MatAXPY()
/petsc/src/mat/impls/aij/seq/aijmkl/
H A Daijmkl.c985 PetscBool sametype; in MatConvert_SeqAIJ_SeqAIJMKL() local
990 PetscCall(PetscObjectTypeCompare((PetscObject)A, type, &sametype)); in MatConvert_SeqAIJ_SeqAIJMKL()
991 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatConvert_SeqAIJ_SeqAIJMKL()
/petsc/src/mat/impls/nest/
H A Dmatnest.c1366 PetscBool cong, isstd, sametype = PETSC_FALSE; in MatNestSetSubMats_Nest() local
1395 sametype = PETSC_TRUE; in MatNestSetSubMats_Nest()
1396 } else if (sametype) { in MatNestSetSubMats_Nest()
1398 PetscCall(PetscStrcmp(vtype, type, &sametype)); in MatNestSetSubMats_Nest()
1403 if (sametype) { /* propagate vectype */ in MatNestSetSubMats_Nest()
/petsc/src/mat/impls/is/
H A Dmatis.c3141 PetscBool sametype = PETSC_TRUE; in MatISSetLocalMat_IS() local
3150 PetscCall(PetscStrcmp(mtype, otype, &sametype)); in MatISSetLocalMat_IS()
3157 if (!sametype && !is->islocalref) PetscCall(MatISSetUpScatters_Private(mat)); in MatISSetLocalMat_IS()
/petsc/src/dm/interface/
H A Ddm.c4086 PetscBool sametype /*, issame */; in DMConvert() local
4092 PetscCall(PetscObjectTypeCompare((PetscObject)dm, newtype, &sametype)); in DMConvert()
4094 if (sametype) { in DMConvert()
/petsc/src/mat/impls/aij/seq/
H A Daij.c5374 PetscBool sametype; in MatSeqAIJSetType() local
5379 PetscCall(PetscObjectTypeCompare((PetscObject)mat, matype, &sametype)); in MatSeqAIJSetType()
5380 if (sametype) PetscFunctionReturn(PETSC_SUCCESS); in MatSeqAIJSetType()