Home
last modified time | relevance | path

Searched refs:solvertype (Results 1 – 25 of 38) sorted by relevance

12

/petsc/src/mat/tests/
H A Dex28.c16 char solvertype[64]; in main() local
60 PetscCall(PetscStrncpy(solvertype, "petsc", sizeof(solvertype))); in main()
61 …PetscCall(PetscOptionsGetString(NULL, NULL, "-mat_solver_type", solvertype, sizeof(solvertype), NU… in main()
64 PetscCall(MatGetFactor(A[0], solvertype, facttype, &F)); in main()
68 PetscCall(PetscStrtoupper(solvertype)); in main()
70 PetscCall(PetscPrintf(PETSC_COMM_WORLD, " %s %s:\n", solvertype, factortype)); in main()
/petsc/src/ksp/pc/impls/factor/
H A Dfactimpl.c9 if (!icc->fact) PetscCall(MatGetFactor(pc->pmat, icc->solvertype, icc->factortype, &icc->fact)); in PCFactorSetUpMatSolverType_Factor()
11 MatFactorTypes[icc->factortype], ((PetscObject)pc->pmat)->type_name, icc->solvertype); in PCFactorSetUpMatSolverType_Factor()
190 PetscCall(PetscFree(lu->solvertype)); in PCFactorSetMatSolverType_Factor()
191 PetscCall(PetscStrallocpy(stype, &lu->solvertype)); in PCFactorSetMatSolverType_Factor()
200 *stype = lu->solvertype; in PCFactorGetMatSolverType_Factor()
218 char tname[256], solvertype[64]; in PCSetFromOptions_Factor() local
245 …Specific direct solver to use", "MatGetFactor", factor->solvertype, solvertype, sizeof(solvertype)… in PCSetFromOptions_Factor()
246 if (flg) PetscCall(PCFactorSetMatSolverType(pc, solvertype)); in PCSetFromOptions_Factor()
299 … PetscCall(PetscViewerASCIIPrintf(viewer, " matrix solver type: %s\n", factor->fact->solvertype)); in PCView_Factor()
H A Dfactor.c17 …PetscCall(MatSolverTypeGet(fact->solvertype, ((PetscObject)pc->pmat)->type_name, fact->factortype,… in PCFactorSetDefaultOrdering_Factor()
22 PetscCall(MatGetFactor(pc->pmat, fact->solvertype, fact->factortype, &fact->fact)); in PCFactorSetDefaultOrdering_Factor()
27 PetscCall(PetscStrcmp(fact->solvertype, fact->fact->solvertype, &flg)); in PCFactorSetDefaultOrdering_Factor()
30 PetscCall(MatGetFactor(pc->pmat, fact->solvertype, fact->factortype, &B)); in PCFactorSetDefaultOrdering_Factor()
H A Dfactor.h12 char *solvertype; member
/petsc/src/mat/impls/aij/seq/cholmod/
H A Daijcholmod.c92 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_cholmod()
93 PetscCall(PetscStrallocpy(MATSOLVERCHOLMOD, &B->solvertype)); in MatGetFactor_seqaij_cholmod()
/petsc/src/mat/impls/aij/seq/essl/
H A Dessl.c148 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_essl()
149 PetscCall(PetscStrallocpy(MATSOLVERESSL, &B->solvertype)); in MatGetFactor_seqaij_essl()
/petsc/src/ksp/pc/impls/factor/qr/
H A Dqr.c39 …tor *)dir)->fact) PetscCall(MatGetFactor(pc->pmat, ((PC_Factor *)dir)->solvertype, MAT_FACTOR_QR, … in PCSetUp_QR()
89 PetscCall(PetscFree(((PC_Factor *)dir)->solvertype)); in PCDestroy_QR()
/petsc/src/mat/impls/aij/seq/bas/
H A Dbasfactor.c196 PetscCall(PetscFree((*B)->solvertype)); in MatGetFactor_seqaij_bas()
197 PetscCall(PetscStrallocpy(MATSOLVERBAS, &(*B)->solvertype)); in MatGetFactor_seqaij_bas()
/petsc/src/mat/impls/aij/seq/matlab/
H A Daijmatlab.c204 PetscCall(PetscFree((*F)->solvertype)); in MatGetFactor_seqaij_matlab()
205 PetscCall(PetscStrallocpy(MATSOLVERMATLAB, &(*F)->solvertype)); in MatGetFactor_seqaij_matlab()
/petsc/src/mat/impls/aij/seq/lusol/
H A Dlusol.c400 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_lusol()
401 PetscCall(PetscStrallocpy(MATSOLVERLUSOL, &B->solvertype)); in MatGetFactor_seqaij_lusol()
/petsc/src/mat/impls/aij/seq/klu/
H A Dklu.c289 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_klu()
290 PetscCall(PetscStrallocpy(MATSOLVERKLU, &B->solvertype)); in MatGetFactor_seqaij_klu()
/petsc/src/mat/impls/aij/seq/spqr/
H A Daijspqr.c338 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_spqr()
339 PetscCall(PetscStrallocpy(MATSOLVERCHOLMOD, &B->solvertype)); in MatGetFactor_seqaij_spqr()
/petsc/src/mat/impls/cdiagonal/
H A Dcdiagonal.c457 PetscCall(PetscFree((*B)->solvertype)); in MatGetFactor_constantdiagonal_petsc()
458 PetscCall(PetscStrallocpy(MATSOLVERPETSC, &(*B)->solvertype)); in MatGetFactor_constantdiagonal_petsc()
/petsc/src/mat/impls/aij/mpi/pastix/
H A Dpastix.c437 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_pastix()
438 PetscCall(PetscStrallocpy(MATSOLVERPASTIX, &B->solvertype)); in MatGetFactor_pastix()
/petsc/src/ksp/pc/impls/factor/icc/
H A Dicc.c82 PetscCall(PetscFree(((PC_Factor *)icc)->solvertype)); in PCDestroy_ICC()
/petsc/src/mat/impls/elemental/
H A Dmatelem.cxx687 PetscCall(PetscFree(A->solvertype)); in MatLUFactor_Elemental()
688 PetscCall(PetscStrallocpy(MATSOLVERELEMENTAL, &A->solvertype)); in MatLUFactor_Elemental()
717 PetscCall(PetscFree(A->solvertype)); in MatCholeskyFactor_Elemental()
718 PetscCall(PetscStrallocpy(MATSOLVERELEMENTAL, &A->solvertype)); in MatCholeskyFactor_Elemental()
756 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_elemental_elemental()
757 PetscCall(PetscStrallocpy(MATSOLVERELEMENTAL, &B->solvertype)); in MatGetFactor_elemental_elemental()
/petsc/src/mat/impls/aij/seq/umfpack/
H A Dumfpack.c433 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_umfpack()
434 PetscCall(PetscStrallocpy(MATSOLVERUMFPACK, &B->solvertype)); in MatGetFactor_seqaij_umfpack()
/petsc/src/mat/impls/sbaij/seq/cholmod/
H A Dsbaijcholmod.c573 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqsbaij_cholmod()
574 PetscCall(PetscStrallocpy(MATSOLVERCHOLMOD, &B->solvertype)); in MatGetFactor_seqsbaij_cholmod()
/petsc/src/ksp/pc/impls/factor/lu/
H A Dlu.c164 PetscCall(PetscFree(((PC_Factor *)dir)->solvertype)); in PCDestroy_LU()
/petsc/src/ksp/pc/impls/factor/cholesky/
H A Dcholesky.c170 PetscCall(PetscFree(((PC_Factor *)dir)->solvertype)); in PCDestroy_Cholesky()
/petsc/src/ksp/pc/impls/factor/ilu/
H A Dilu.c185 PetscCall(PetscFree(((PC_Factor *)ilu)->solvertype)); in PCDestroy_ILU()
/petsc/src/mat/impls/scalapack/
H A Dmatscalapack.c821 PetscCall(PetscFree(A->solvertype)); in MatLUFactor_ScaLAPACK()
822 PetscCall(PetscStrallocpy(MATSOLVERSCALAPACK, &A->solvertype)); in MatLUFactor_ScaLAPACK()
852 PetscCall(PetscFree(A->solvertype)); in MatCholeskyFactor_ScaLAPACK()
853 PetscCall(PetscStrallocpy(MATSOLVERSCALAPACK, &A->solvertype)); in MatCholeskyFactor_ScaLAPACK()
889 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_scalapack_scalapack()
890 PetscCall(PetscStrallocpy(MATSOLVERSCALAPACK, &B->solvertype)); in MatGetFactor_scalapack_scalapack()
/petsc/src/mat/impls/aij/seq/superlu/
H A Dsuperlu.c555 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_seqaij_superlu()
556 PetscCall(PetscStrallocpy(MATSOLVERSUPERLU, &B->solvertype)); in MatGetFactor_seqaij_superlu()
/petsc/src/mat/impls/aij/mpi/mkl_cpardiso/
H A Dmkl_cpardiso.c901 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_mpiaij_mkl_cpardiso()
902 PetscCall(PetscStrallocpy(MATSOLVERMKL_CPARDISO, &B->solvertype)); in MatGetFactor_mpiaij_mkl_cpardiso()
/petsc/src/mat/impls/aij/mpi/strumpack/
H A Dstrumpack.c1132 PetscCall(PetscFree(B->solvertype)); in MatGetFactor_aij_strumpack()
1133 PetscCall(PetscStrallocpy(MATSOLVERSTRUMPACK, &B->solvertype)); in MatGetFactor_aij_strumpack()

12