Home
last modified time | relevance | path

Searched refs:ftype (Results 1 – 25 of 45) sorted by relevance

12

/petsc/src/mat/impls/aij/mpi/pastix/
H A Dpastix.c422 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 Dpetscpyvista.py107 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 Df90_cwrap.c27 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 Dmffd.c69 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 Dtestparse.py142 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 Dqr.c23 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 Dbasfactor.c178 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 Dlu.c56 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 Dsuperlu.c539 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 Dcholesky.c39 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 Dhtransm.c411 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 Dtransm.c233 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 Daijmatlab.c186 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 Dhtool.cxx970 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 Dstrumpack.c1057 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 Daijcholmod.c59 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 Dbaijfact.c695 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 Dmkl_pardiso.c708 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 Dfactor.c691 PetscErrorCode PCFactorInitialize(PC pc, MatFactorType ftype) in PCFactorInitialize() argument
697 fact->factortype = ftype; in PCFactorInitialize()
/petsc/src/mat/impls/aij/seq/essl/
H A Dessl.c125 PETSC_EXTERN PetscErrorCode MatGetFactor_seqaij_essl(Mat A, MatFactorType ftype, Mat *F) in MatGetFactor_seqaij_essl() argument
/petsc/src/mat/impls/cdiagonal/
H A Dcdiagonal.c438 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 Dswarm.c372 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 Dmatrix.c4563 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 Dmkl_cpardiso.c864 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 Dmatseqdensecupm.hpp1741 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()

12