| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscopt.pxi | 43 cdef getprefix(prefix, deft=None): 45 prefix = deft 67 cdef getopt_Bool(PetscOptions opt, const char *pre, const char *name, object deft): argument 72 if deft is not None: return toBool(asBool(deft)) 75 cdef getopt_BoolArray(PetscOptions opt, const char *pre, const char *name, object deft): argument 80 if deft is not None: 81 deft = [toBool(asBool(d)) for d in deft] 82 deft = iarray_b(deft, &ndeft, &ivaluedeft) 88 if deft is not None: return deft.astype('bool') 91 cdef getopt_Int(PetscOptions opt, const char *pre, const char *name, object deft): argument [all …]
|
| /petsc/src/mat/graphops/color/interface/ |
| H A D | matcoloring.c | 187 MatColoringType deft = MATCOLORINGGREEDY; in MatColoringSetFromOptions() local 194 if (dist == 2) deft = MATCOLORINGSL; in MatColoringSetFromOptions() 198 if (((PetscObject)mc)->type_name) deft = ((PetscObject)mc)->type_name; in MatColoringSetFromOptions() 199 …_type", "The coloring method used", "MatColoringSetType", MatColoringList, deft, type, 256, &flg)); in MatColoringSetFromOptions() 203 PetscCall(MatColoringSetType(mc, deft)); in MatColoringSetFromOptions()
|
| /petsc/src/vec/vec/utils/tagger/interface/ |
| H A D | tagger.c | 192 VecTaggerType deft; in VecTaggerSetFromOptions() local 199 deft = ((PetscObject)tagger)->type_name ? ((PetscObject)tagger)->type_name : VECTAGGERABSOLUTE; in VecTaggerSetFromOptions() 200 …type", "VecTagger implementation type", "VecTaggerSetType", VecTaggerList, deft, type, 256, &flg)); in VecTaggerSetFromOptions() 201 PetscCall(VecTaggerSetType(tagger, flg ? type : deft)); in VecTaggerSetFromOptions()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex77.c | 17 const char *deft = MATAIJ; in main() local 39 …PetscCall(PetscOptionsFList("-mat_type", "Matrix type", "MatSetType", MatList, deft, type, 256, &f… in main()
|
| /petsc/src/mat/tests/ |
| H A D | ex62.c | 38 const char *deft = MATAIJ; in main() local 55 …PetscCall(PetscOptionsFList("-A_mat_type", "Matrix type", "MatSetType", MatList, deft, A_mattype, … in main() 56 …PetscCall(PetscOptionsFList("-B_mat_type", "Matrix type", "MatSetType", MatList, deft, B_mattype, … in main()
|
| H A D | ex70.c | 207 const char *deft = MATAIJ; in main() local 257 …PetscCall(PetscOptionsFList("-A_mat_type", "Matrix type", "MatSetType", MatList, deft, mattype, 25… in main()
|
| /petsc/src/snes/linesearch/interface/ |
| H A D | linesearch.c | 821 const char *deft = SNESLINESEARCHBASIC; in SNESLineSearchSetFromOptions() local 830 if (((PetscObject)linesearch)->type_name) deft = ((PetscObject)linesearch)->type_name; in SNESLineSearchSetFromOptions() 831 …rch_type", "Linesearch type", "SNESLineSearchSetType", SNESLineSearchList, deft, type, 256, &flg)); in SNESLineSearchSetFromOptions() 835 PetscCall(SNESLineSearchSetType(linesearch, deft)); in SNESLineSearchSetFromOptions()
|
| /petsc/src/mat/utils/ |
| H A D | gcreate.c | 279 const char *deft = MATAIJ; in MatSetFromOptions() local 295 …PetscCall(PetscOptionsFList("-mat_type", "Matrix type", "MatSetType", MatList, deft, type, PETSC_S… in MatSetFromOptions() 297 else if (!((PetscObject)B)->type_name) PetscCall(MatSetType(B, deft)); in MatSetFromOptions()
|
| /petsc/src/vec/is/sf/interface/ |
| H A D | sf.c | 346 PetscSFType deft; in PetscSFSetFromOptions() local 353 deft = ((PetscObject)sf)->type_name ? ((PetscObject)sf)->type_name : PETSCSFBASIC; in PetscSFSetFromOptions() 354 …"-sf_type", "PetscSF implementation type", "PetscSFSetType", PetscSFList, deft, type, sizeof(type)… in PetscSFSetFromOptions() 355 PetscCall(PetscSFSetType(sf, flg ? type : deft)); in PetscSFSetFromOptions()
|
| /petsc/src/snes/interface/ |
| H A D | snes.c | 963 const char *deft = SNESNEWTONLS; in SNESSetFromOptions() local 975 if (((PetscObject)snes)->type_name) deft = ((PetscObject)snes)->type_name; in SNESSetFromOptions() 976 …onsFList("-snes_type", "Nonlinear solver method", "SNESSetType", SNESList, deft, type, 256, &flg)); in SNESSetFromOptions() 980 PetscCall(SNESSetType(snes, deft)); in SNESSetFromOptions()
|