| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscopt.pxi | 76 cdef PetscBool value[1024], *ivalue = value, *ivaluedeft = NULL 84 unused = oarray_b(empty_b(ndeft), &nmax, &ivalue) 85 memcpy(ivalue, ivaluedeft, <size_t>ndeft*sizeof(PetscBool)) 86 CHKERR(PetscOptionsGetBoolArray(opt, pre, name, ivalue, &nmax, &flag)) 87 if flag==PETSC_TRUE: return array_b(nmax, ivalue).astype('bool') 100 cdef PetscInt value[1024], *ivalue = value, *ivaluedeft = NULL 107 unused = oarray_i(empty_i(ndeft), &nmax, &ivalue) 108 memcpy(ivalue, ivaluedeft, <size_t>ndeft*sizeof(PetscInt)) 109 CHKERR(PetscOptionsGetIntArray(opt, pre, name, ivalue, &nmax, &flag)) 110 if flag==PETSC_TRUE: return array_i(nmax, ivalue) [all …]
|
| /petsc/src/sys/tutorials/ |
| H A D | ex9f.F90 | 19 PetscInt :: ivalue, idefault = 2_Pi 60 …PetscCallA(PetscOptionsInt('-int', 'Get an application int', 'Man page', idefault, ivalue, flg, ie… 62 write (IOBuffer, '("The integer value was set to ",I8,"\n")') ivalue
|
| /petsc/src/sys/objects/ftn-src/ |
| H A D | optionenum.F90 | 55 PetscEnum :: curr, ivalue 82 call PetscOptionsEnumPrivate(opt, text, man, CArray, curr, ivalue, set, ierr)
|
| /petsc/src/sys/objects/ |
| H A D | options.c | 2404 …tBool(PetscOptions options, const char pre[], const char name[], PetscBool *ivalue, PetscBool *set) in PetscOptionsGetBool() argument 2411 if (ivalue) PetscAssertPointer(ivalue, 4); in PetscOptionsGetBool() 2416 if (ivalue) *ivalue = flag; in PetscOptionsGetBool() 2458 …ool3(PetscOptions options, const char pre[], const char name[], PetscBool3 *ivalue, PetscBool *set) in PetscOptionsGetBool3() argument 2465 if (ivalue) PetscAssertPointer(ivalue, 4); in PetscOptionsGetBool3() 2474 if (ivalue) *ivalue = PETSC_BOOL3_UNKNOWN; in PetscOptionsGetBool3() 2477 if (ivalue) *ivalue = PetscBoolToBool3(flag); in PetscOptionsGetBool3() 2633 …GetInt(PetscOptions options, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set) in PetscOptionsGetInt() argument 2640 PetscAssertPointer(ivalue, 4); in PetscOptionsGetInt() 2647 PetscCall(PetscOptionsStringToInt(value, ivalue)); in PetscOptionsGetInt() [all …]
|
| H A D | aoptions.c | 359 char *ivalue; in PetscOptionsGetFromTextInput() local 363 PetscCall(PetscStrallocpy(value, &ivalue)); in PetscOptionsGetFromTextInput() 367 PetscCall(PetscStrlen(ivalue, &len)); in PetscOptionsGetFromTextInput() 368 if (ivalue[0] == '-') i = 2; in PetscOptionsGetFromTextInput() 371 if (ivalue[i] == '-') { in PetscOptionsGetFromTextInput() 372 … - 1), PETSC_COMM_SELF, PETSC_ERR_USER, "Error in %" PetscInt_FMT "-th array entry %s", n, ivalue); in PetscOptionsGetFromTextInput() 373 ivalue[i] = 0; in PetscOptionsGetFromTextInput() 374 PetscCall(PetscOptionsStringToInt(ivalue, &start)); in PetscOptionsGetFromTextInput() 375 PetscCall(PetscOptionsStringToInt(ivalue + i + 1, &end)); in PetscOptionsGetFromTextInput() 376 …n %" PetscInt_FMT "-th array entry, %s-%s cannot have decreasing list", n, ivalue, ivalue + i + 1); in PetscOptionsGetFromTextInput() [all …]
|
| /petsc/src/sys/objects/ftn-custom/ |
| H A D | zoptionsf.c | 148 … char *man, const char *const *list, PetscEnum *currentvalue, PetscEnum *ivalue, PetscBool *flg, P… in petscoptionsenumprivate_() argument 161 …etscOptionsEnum_Private(PetscOptionsObject, copt, ctext, cman, list, *currentvalue, ivalue, &flag); in petscoptionsenumprivate_() 309 …Options *opt, char *pre, char *name, const char *const *list, PetscEnum *ivalue, PetscBool *flg, P… in petscoptionsgetenumprivate_() argument 316 *ierr = PetscOptionsGetEnum(*opt, c1, c2, list, ivalue, &flag); in petscoptionsgetenumprivate_()
|