Home
last modified time | relevance | path

Searched refs:ntext (Results 1 – 3 of 3) sorted by relevance

/petsc/src/sys/objects/
H A Daoptions.c223 PetscInt ntext; in PetscOptionsSAWsInput() local
226 PetscCall(PetscFunctionListGet(next->flist, (const char ***)&next->edata, &ntext)); in PetscOptionsSAWsInput()
227 PetscCallSAWs(SAWs_Set_Legal_Variable_Values, (dir, ntext, next->edata)); in PetscOptionsSAWsInput()
230 PetscInt ntext = next->nlist; in PetscOptionsSAWsInput() local
233 PetscCall(PetscMalloc1(ntext + 1, (char ***)&next->edata)); in PetscOptionsSAWsInput()
234 PetscCall(PetscMemcpy(next->edata, next->list, ntext * sizeof(char *))); in PetscOptionsSAWsInput()
235 PetscCallSAWs(SAWs_Set_Legal_Variable_Values, (dir, ntext, next->edata)); in PetscOptionsSAWsInput()
643 PetscInt ntext = 0; in PetscOptionsEnum_Private() local
652 PetscCall(GetListLength(list, &ntext)); in PetscOptionsEnum_Private()
653 …PetscCall(PetscOptionsEList_Private(PetscOptionsObject, opt, text, man, list, ntext, list[(int)cur… in PetscOptionsEnum_Private()
[all …]
H A Doptions.c2516 …s, const char pre[], const char opt[], const char *const list[], PetscInt ntext, PetscInt *value, … in PetscOptionsGetEList() argument
2525 for (i = 0; i < ntext; i++) { in PetscOptionsGetEList()
2534 PetscCall(PetscEListFind(ntext, list, svalue, value, &flg)); in PetscOptionsGetEList()
2540 for (i = 0; i < ntext; i++) { in PetscOptionsGetEList()
2586 PetscInt ntext = 0, tval; in PetscOptionsGetEnum() local
2591 …while (list[ntext++]) PetscCheck(ntext <= 50, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "List argument… in PetscOptionsGetEnum()
2592 …PetscCheck(ntext >= 3, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "List argument must have at least two… in PetscOptionsGetEnum()
2593 ntext -= 3; in PetscOptionsGetEnum()
2594 PetscCall(PetscOptionsGetEList(options, pre, opt, list, ntext, &tval, &fset)); in PetscOptionsGetEnum()
/petsc/include/
H A Dpetscoptions.h1180 …opt, ltext, man, list, ntext, currentvalue, value, set) PetscOptionsEList_Private(PetscOptionsObje… argument