| /petsc/src/mat/impls/aij/mpi/pastix/ |
| H A D | pastix.c | 422 static PetscErrorCode MatGetFactor_pastix(Mat A, MatFactorType ftype, Mat *F, const char *mattype) in MatGetFactor_pastix() argument 434 …PetscCheck(ftype == MAT_FACTOR_LU || ftype == MAT_FACTOR_CHOLESKY, PETSC_COMM_SELF, PETSC_ERR_SUP,… in MatGetFactor_pastix() 450 B->factortype = ftype; in MatGetFactor_pastix() 471 …pastix->iparm[IPARM_FACTORIZATION] = ftype == MAT_FACTOR_CHOLESKY ? PastixFactSYTRF : PastixFactGE… in MatGetFactor_pastix() 477 static PetscErrorCode MatGetFactor_mpiaij_pastix(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_mpiaij_pastix() argument 480 …PetscCheck(ftype == MAT_FACTOR_LU, PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot use PETSc AIJ matrices … in MatGetFactor_mpiaij_pastix() 481 PetscCall(MatGetFactor_pastix(A, ftype, F, MATMPIAIJ)); in MatGetFactor_mpiaij_pastix() 485 static PetscErrorCode MatGetFactor_seqaij_pastix(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqaij_pastix() argument 488 …PetscCheck(ftype == MAT_FACTOR_LU, PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot use PETSc AIJ matrices … in MatGetFactor_seqaij_pastix() 489 PetscCall(MatGetFactor_pastix(A, ftype, F, MATSEQAIJ)); in MatGetFactor_seqaij_pastix() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/lib/_pytypes/viewer/ |
| H A D | petscpyvista.py | 107 ftype = None 111 ftype = SCALAR 113 ftype = VECTOR 128 if ftype == SCALAR: 130 elif ftype == VECTOR: 138 if ftype == VECTOR: 145 elif ftype == SCALAR:
|
| /petsc/src/sys/ftn-custom/ |
| H A D | f90_cwrap.c | 27 MPI_Datatype ftype; in PetscMPIFortranDatatypeToC() local 30 ftype = MPI_Type_f2c(unit); in PetscMPIFortranDatatypeToC() 31 if (ftype == MPI_INTEGER || ftype == MPI_INT) *dtype = MPI_INT; in PetscMPIFortranDatatypeToC() 32 else if (ftype == MPI_INTEGER8 || ftype == MPIU_INT64) *dtype = MPIU_INT64; in PetscMPIFortranDatatypeToC() 33 else if (ftype == MPI_DOUBLE_PRECISION || ftype == MPI_DOUBLE) *dtype = MPI_DOUBLE; in PetscMPIFortranDatatypeToC() 34 else if (ftype == MPI_FLOAT) *dtype = MPI_FLOAT; in PetscMPIFortranDatatypeToC() 36 else if (ftype == MPI_COMPLEX16 || ftype == MPI_C_DOUBLE_COMPLEX) *dtype = MPI_C_DOUBLE_COMPLEX; in PetscMPIFortranDatatypeToC() 39 else if (ftype == MPIU___FLOAT128) *dtype = MPIU___FLOAT128; in PetscMPIFortranDatatypeToC()
|
| /petsc/src/mat/impls/mffd/ |
| H A D | mffd.c | 69 static PetscErrorCode MatMFFDSetType_MFFD(Mat mat, MatMFFDType ftype) in MatMFFDSetType_MFFD() argument 77 PetscAssertPointer(ftype, 2); in MatMFFDSetType_MFFD() 81 PetscCall(PetscObjectTypeCompare((PetscObject)ctx, ftype, &match)); in MatMFFDSetType_MFFD() 87 PetscCall(PetscFunctionListFind(MatMFFDList, ftype, &r)); in MatMFFDSetType_MFFD() 88 …cObjectComm((PetscObject)mat), PETSC_ERR_ARG_UNKNOWN_TYPE, "Unknown MatMFFD type %s given", ftype); in MatMFFDSetType_MFFD() 90 PetscCall(PetscObjectChangeTypeName((PetscObject)ctx, ftype)); in MatMFFDSetType_MFFD() 117 PetscErrorCode MatMFFDSetType(Mat mat, MatMFFDType ftype) in MatMFFDSetType() argument 121 PetscAssertPointer(ftype, 2); in MatMFFDSetType() 122 PetscTryMethod(mat, "MatMFFDSetType_C", (Mat, MatMFFDType), (mat, ftype)); in MatMFFDSetType() 499 char ftype[256]; in MatSetFromOptions_MFFD() local [all …]
|
| /petsc/config/ |
| H A D | testparse.py | 142 ftype='separate' if suffx.startswith('separate') else 'shared' 143 return keynm,lvars,ftype 158 keynm,lvars,ftype=parseLoopArgs(varset) 159 if ftype=='separate': loopVars['separate'].append(keynm) 167 keynm,lvars,ftype=parseLoopArgs(varset) 168 loopVars[ftype].append(keynm) 203 keynm,save_vals,ftype=parseLoopArgs('nsize '+varset) 209 keyvar,vals,ftype=parseLoopArgs(varset)
|
| /petsc/src/ksp/pc/impls/factor/qr/ |
| H A D | qr.c | 23 MatFactorType ftype; in PCSetUp_QR() local 25 PetscCall(MatGetFactorType(pc->pmat, &ftype)); in PCSetUp_QR() 26 if (ftype == MAT_FACTOR_NONE) { in PCSetUp_QR()
|
| /petsc/src/mat/impls/aij/seq/bas/ |
| H A D | basfactor.c | 178 PETSC_INTERN PetscErrorCode MatGetFactor_seqaij_bas(Mat A, MatFactorType ftype, Mat *B) in MatGetFactor_seqaij_bas() argument 185 PetscCheck(ftype == MAT_FACTOR_ICC, PETSC_COMM_SELF, PETSC_ERR_SUP, "Factor type not supported"); in MatGetFactor_seqaij_bas() 194 (*B)->factortype = ftype; in MatGetFactor_seqaij_bas()
|
| /petsc/src/ksp/pc/impls/factor/lu/ |
| H A D | lu.c | 56 MatFactorType ftype; in PCSetUp_LU() local 58 PetscCall(MatGetFactorType(pc->pmat, &ftype)); in PCSetUp_LU() 59 if (ftype == MAT_FACTOR_NONE) { in PCSetUp_LU()
|
| /petsc/src/mat/impls/aij/seq/superlu/ |
| H A D | superlu.c | 539 static PetscErrorCode MatGetFactor_seqaij_superlu(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqaij_superlu() argument 551 …PetscCheck(ftype == MAT_FACTOR_LU || ftype == MAT_FACTOR_ILU, PETSC_COMM_SELF, PETSC_ERR_SUP, "Fac… in MatGetFactor_seqaij_superlu() 561 B->factortype = ftype; in MatGetFactor_seqaij_superlu() 567 if (ftype == MAT_FACTOR_LU) { in MatGetFactor_seqaij_superlu() 577 } else if (ftype == MAT_FACTOR_ILU) { in MatGetFactor_seqaij_superlu() 621 static PetscErrorCode MatGetFactor_seqsell_superlu(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqsell_superlu() argument 626 PetscCall(MatGetFactor_seqaij_superlu(A, ftype, F)); in MatGetFactor_seqsell_superlu()
|
| /petsc/src/ksp/pc/impls/factor/cholesky/ |
| H A D | cholesky.c | 39 MatFactorType ftype; in PCSetUp_Cholesky() local 41 PetscCall(MatGetFactorType(pc->pmat, &ftype)); in PCSetUp_Cholesky() 42 if (ftype == MAT_FACTOR_NONE) { in PCSetUp_Cholesky()
|
| /petsc/src/mat/impls/transpose/ |
| H A D | htransm.c | 411 static PetscErrorCode MatGetFactor_HT(Mat N, MatSolverType type, MatFactorType ftype, Mat *F) in MatGetFactor_HT() argument 417 PetscCall(MatGetFactor(A, type, ftype, &FA)); in MatGetFactor_HT() 419 …if (ftype == MAT_FACTOR_LU) PetscCall(MatShellSetOperation(*F, MATOP_LUFACTOR_SYMBOLIC, (PetscErro… in MatGetFactor_HT() 420 else if (ftype == MAT_FACTOR_CHOLESKY) { in MatGetFactor_HT() 424 …R_SUP, "Support for factor type %s not implemented in MATTRANSPOSEVIRTUAL", MatFactorTypes[ftype]); in MatGetFactor_HT() 425 (*F)->factortype = ftype; in MatGetFactor_HT()
|
| H A D | transm.c | 233 static PetscErrorCode MatGetFactor_Transpose(Mat N, MatSolverType type, MatFactorType ftype, Mat *F) in MatGetFactor_Transpose() argument 239 PetscCall(MatGetFactor(A, type, ftype, &FA)); in MatGetFactor_Transpose() 241 …if (ftype == MAT_FACTOR_LU) PetscCall(MatShellSetOperation(*F, MATOP_LUFACTOR_SYMBOLIC, (PetscErro… in MatGetFactor_Transpose() 242 else if (ftype == MAT_FACTOR_CHOLESKY) { in MatGetFactor_Transpose() 245 …R_SUP, "Support for factor type %s not implemented in MATTRANSPOSEVIRTUAL", MatFactorTypes[ftype]); in MatGetFactor_Transpose() 246 (*F)->factortype = ftype; in MatGetFactor_Transpose()
|
| /petsc/src/mat/impls/aij/seq/matlab/ |
| H A D | aijmatlab.c | 186 static PetscErrorCode MatGetFactor_seqaij_matlab(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqaij_matlab() argument 203 (*F)->factortype = ftype; in MatGetFactor_seqaij_matlab()
|
| /petsc/src/mat/impls/htool/ |
| H A D | htool.cxx | 970 template <MatFactorType ftype> 979 if (ftype == MAT_FACTOR_LU) htool::sequential_lu_factorization(*B); in MatFactorNumeric_Htool() 985 template <MatFactorType ftype> 993 if (!PetscDefined(USE_COMPLEX) || ftype == MAT_FACTOR_LU) { in MatFactorSymbolic_Htool() 998 if (ftype == MAT_FACTOR_LU) F->ops->lufactornumeric = MatFactorNumeric_Htool<MAT_FACTOR_LU>; in MatFactorSymbolic_Htool() 1017 static PetscErrorCode MatGetFactor_htool_htool(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_htool_htool() argument 1034 B->factortype = ftype; in MatGetFactor_htool_htool() 1037 if (ftype == MAT_FACTOR_LU) B->ops->lufactorsymbolic = MatLUFactorSymbolic_Htool; in MatGetFactor_htool_htool() 1038 …else if (ftype == MAT_FACTOR_CHOLESKY) B->ops->choleskyfactorsymbolic = MatCholeskyFactorSymbolic_… in MatGetFactor_htool_htool()
|
| /petsc/src/mat/impls/aij/mpi/strumpack/ |
| H A D | strumpack.c | 1057 static PetscErrorCode MatGetFactor_aij_strumpack(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_aij_strumpack() argument 1098 …PetscCheck(ftype == MAT_FACTOR_LU || ftype == MAT_FACTOR_ILU, PETSC_COMM_SELF, PETSC_ERR_SUP, "Fac… in MatGetFactor_aij_strumpack() 1129 B->factortype = ftype; in MatGetFactor_aij_strumpack() 1157 …if (ftype == MAT_FACTOR_ILU) PetscStackCallExternalVoid("STRUMPACK_set_compression", STRUMPACK_set… in MatGetFactor_aij_strumpack()
|
| /petsc/src/mat/impls/aij/seq/cholmod/ |
| H A D | aijcholmod.c | 59 PETSC_INTERN PetscErrorCode MatGetFactor_seqaij_cholmod(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqaij_cholmod() argument
|
| /petsc/src/mat/impls/baij/seq/ |
| H A D | baijfact.c | 695 PETSC_INTERN PetscErrorCode MatGetFactor_seqbaij_petsc(Mat A, MatFactorType ftype, Mat *B) in MatGetFactor_seqbaij_petsc() argument 700 …ned(USE_COMPLEX) || A->hermitian != PETSC_BOOL3_TRUE || !(ftype == MAT_FACTOR_CHOLESKY || ftype ==… in MatGetFactor_seqbaij_petsc() 703 if (ftype == MAT_FACTOR_LU || ftype == MAT_FACTOR_ILU || ftype == MAT_FACTOR_ILUDT) { in MatGetFactor_seqbaij_petsc() 711 } else if (ftype == MAT_FACTOR_CHOLESKY || ftype == MAT_FACTOR_ICC) { in MatGetFactor_seqbaij_petsc() 721 (*B)->factortype = ftype; in MatGetFactor_seqbaij_petsc()
|
| /petsc/src/mat/impls/aij/seq/mkl_pardiso/ |
| H A D | mkl_pardiso.c | 708 static PetscErrorCode MatFactorMKL_PARDISOInitialize_Private(Mat A, MatFactorType ftype, Mat_MKL_PA… in MatFactorMKL_PARDISOInitialize_Private() argument 754 if (ftype == MAT_FACTOR_LU) { in MatFactorMKL_PARDISOInitialize_Private() 993 PETSC_EXTERN PetscErrorCode MatGetFactor_aij_mkl_pardiso(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_aij_mkl_pardiso() argument 1011 PetscCall(MatFactorMKL_PARDISOInitialize_Private(A, ftype, mat_mkl_pardiso)); in MatGetFactor_aij_mkl_pardiso() 1012 if (ftype == MAT_FACTOR_LU) { in MatGetFactor_aij_mkl_pardiso() 1047 B->factortype = ftype; in MatGetFactor_aij_mkl_pardiso()
|
| /petsc/src/ksp/pc/impls/factor/ |
| H A D | factor.c | 691 PetscErrorCode PCFactorInitialize(PC pc, MatFactorType ftype) in PCFactorInitialize() argument 697 fact->factortype = ftype; in PCFactorInitialize()
|
| /petsc/src/mat/impls/aij/seq/essl/ |
| H A D | essl.c | 125 PETSC_EXTERN PetscErrorCode MatGetFactor_seqaij_essl(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqaij_essl() argument
|
| /petsc/src/mat/impls/cdiagonal/ |
| H A D | cdiagonal.c | 438 PETSC_INTERN PetscErrorCode MatGetFactor_constantdiagonal_petsc(Mat A, MatFactorType ftype, Mat *B) in MatGetFactor_constantdiagonal_petsc() argument 445 (*B)->factortype = ftype; in MatGetFactor_constantdiagonal_petsc()
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarm.c | 372 PetscDataType ftype; in DMSwarmDestroyVectorFromFields_Private() local 375 PetscCall(DMSwarmGetField(sw, fieldnames[f], &fbs, &ftype, (void **)&farray)); in DMSwarmDestroyVectorFromFields_Private() 381 PetscCall(DMSwarmRestoreField(sw, fieldnames[f], &fbs, &ftype, (void **)&farray)); in DMSwarmDestroyVectorFromFields_Private() 399 PetscDataType ftype; in DMSwarmCreateVectorFromFields_Private() local 402 PetscCall(DMSwarmGetFieldInfo(sw, fieldnames[f], &fbs, &ftype)); in DMSwarmCreateVectorFromFields_Private() 403 …PetscCheck(ftype == PETSC_REAL, PetscObjectComm((PetscObject)sw), PETSC_ERR_SUP, "Only valid for P… in DMSwarmCreateVectorFromFields_Private() 415 PetscDataType ftype; in DMSwarmCreateVectorFromFields_Private() local 418 PetscCall(DMSwarmGetField(sw, fieldnames[f], &fbs, &ftype, (void **)&farray)); in DMSwarmCreateVectorFromFields_Private() 423 PetscCall(DMSwarmRestoreField(sw, fieldnames[f], &fbs, &ftype, (void **)&farray)); in DMSwarmCreateVectorFromFields_Private()
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 4563 PetscErrorCode MatSolverTypeRegister(MatSolverType package, MatType mtype, MatFactorType ftype, Pet… in MatSolverTypeRegister() argument 4576 MatSolverTypeHolders->handlers->createfactor[(int)ftype - 1] = createfactor; in MatSolverTypeRegister() 4587 inext->createfactor[(int)ftype - 1] = createfactor; in MatSolverTypeRegister() 4595 iprev->next->createfactor[(int)ftype - 1] = createfactor; in MatSolverTypeRegister() 4605 prev->next->handlers->createfactor[(int)ftype - 1] = createfactor; in MatSolverTypeRegister() 4637 …mtype, MatFactorType ftype, PetscBool *foundtype, PetscBool *foundmtype, PetscErrorCode (**createf… in MatSolverTypeGet() argument 4658 if (createfactor) *createfactor = inext->createfactor[(int)ftype - 1]; in MatSolverTypeGet() 4671 if (flg && inext->createfactor[(int)ftype - 1]) { in MatSolverTypeGet() 4674 if (createfactor) *createfactor = inext->createfactor[(int)ftype - 1]; in MatSolverTypeGet() 4687 if (flg && inext->createfactor[(int)ftype - 1]) { in MatSolverTypeGet() [all …]
|
| /petsc/src/mat/impls/aij/mpi/mkl_cpardiso/ |
| H A D | mkl_cpardiso.c | 864 static PetscErrorCode MatGetFactor_mpiaij_mkl_cpardiso(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_mpiaij_mkl_cpardiso() argument 888 if (ftype == MAT_FACTOR_LU) B->ops->lufactorsymbolic = MatLUFactorSymbolic_AIJMKL_CPARDISO; in MatGetFactor_mpiaij_mkl_cpardiso() 895 B->factortype = ftype; in MatGetFactor_mpiaij_mkl_cpardiso()
|
| /petsc/src/mat/impls/dense/seq/cupm/ |
| H A D | matseqdensecupm.hpp | 1741 inline PetscErrorCode MatDense_Seq_CUPM<T>::GetFactor(Mat A, MatFactorType ftype, Mat *fact_out) no… in GetFactor() argument 1749 fact->factortype = ftype; in GetFactor() 1750 switch (ftype) { in GetFactor() 1769 … SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "MatFactorType %s not supported", MatFactorTypes[ftype]); in GetFactor() 1940 for (auto ftype : util::make_array(MAT_FACTOR_LU, MAT_FACTOR_CHOLESKY, MAT_FACTOR_QR)) { in MatSolverTypeRegister_DENSECUPM() local 1941 …PetscCall(MatSolverTypeRegister(MatDense_Seq_CUPM<T>::MATSOLVERCUPM(), MATSEQDENSE, ftype, MatDens… in MatSolverTypeRegister_DENSECUPM() 1942 …se_Seq_CUPM<T>::MATSOLVERCUPM(), MatDense_Seq_CUPM<T>::MATSEQDENSECUPM(), ftype, MatDense_Seq_CUPM… in MatSolverTypeRegister_DENSECUPM()
|