Lines Matching refs:names
72 char **names; /* option names */ member
955 if (PetscCIOption(options->names[i])) continue; in PetscOptionsView()
966 if (PetscCIOption(options->names[i])) continue; in PetscOptionsView()
968 PetscCall(PetscViewerASCIIPrintf(viewer, "-%s %s", options->names[i], options->values[i])); in PetscOptionsView()
970 PetscCall(PetscViewerASCIIPrintf(viewer, "-%s", options->names[i])); in PetscOptionsView()
987 if (PetscCIOption(defaultoptions->names[i])) continue; in PetscOptionsLeftError()
995 if (PetscCIOption(defaultoptions->names[i])) continue; in PetscOptionsLeftError()
996 …Printf)(" Option left: name:-%s value: %s source: %s\n", defaultoptions->names[i], defaultoptions… in PetscOptionsLeftError()
997 …rintf)(" Option left: name:-%s (no value) source: %s\n", defaultoptions->names[i], PetscOptionSou… in PetscOptionsLeftError()
1010 if (PetscCIOption(options->names[i])) continue; in PetscOptionsViewError()
1020 if (PetscCIOption(options->names[i])) continue; in PetscOptionsViewError()
1022 …PetscCall((*PetscErrorPrintf)("-%s %s (source: %s)\n", options->names[i], options->values[i], Pets… in PetscOptionsViewError()
1024 …PetscCall((*PetscErrorPrintf)("-%s (source: %s)\n", options->names[i], PetscOptionSources[options-… in PetscOptionsViewError()
1138 if (options->names[i]) free(options->names[i]); in PetscOptionsClear()
1142 free(options->names); in PetscOptionsClear()
1146 options->names = NULL; in PetscOptionsClear()
1279 char **names; in PetscOptionsSetValue_Private() local
1314 names = options->names; in PetscOptionsSetValue_Private()
1316 int result = PetscOptNameCmp(names[i], name); in PetscOptionsSetValue_Private()
1326 char **names, **values; in PetscOptionsSetValue_Private() local
1331 names = (char **)malloc(options->Nalloc * sizeof(char *)); in PetscOptionsSetValue_Private()
1336 names[i] = options->names[i]; in PetscOptionsSetValue_Private()
1341 free(options->names); in PetscOptionsSetValue_Private()
1345 options->names = names; in PetscOptionsSetValue_Private()
1353 options->names[i] = options->names[i - 1]; in PetscOptionsSetValue_Private()
1358 options->names[n] = NULL; in PetscOptionsSetValue_Private()
1370 options->names[n] = (char *)malloc((len + 1) * sizeof(char)); in PetscOptionsSetValue_Private()
1371 PetscCheck(options->names[n], PETSC_COMM_SELF, PETSC_ERR_MEM, "Failed to allocate option name"); in PetscOptionsSetValue_Private()
1372 strcpy(options->names[n], name); in PetscOptionsSetValue_Private()
1426 char **names; in PetscOptionsClearValue() local
1437 names = options->names; in PetscOptionsClearValue()
1439 int result = PetscOptNameCmp(names[i], name); in PetscOptionsClearValue()
1451 if (options->names[n]) free(options->names[n]); in PetscOptionsClearValue()
1455 options->names[i] = options->names[i + 1]; in PetscOptionsClearValue()
1535 it = kh_put(HO, ht, options->names[i], &ret); in PetscOptionsFindPair()
1657 PetscCall(PetscStrncmp(options->names[i], opt, len, &match)); in PetscOptionsFindPairPrefix_Private()
1660 if (option) *option = options->names[i]; in PetscOptionsFindPairPrefix_Private()
1806 PetscCall(PetscStrlen(options->names[i], &lent)); in PetscOptionsGetAll()
1817 PetscCall(PetscStrlcat(coptions, options->names[i], len)); in PetscOptionsGetAll()
1858 PetscCall(PetscStrcasecmp(options->names[i], name, used)); in PetscOptionsUsed()
1934 if (PetscCIOption(toptions->names[i])) continue; in PetscOptionsLeft()
1936 …TSC_COMM_WORLD, "Option left: name:-%s value: %s source: %s\n", toptions->names[i], toptions->valu… in PetscOptionsLeft()
1938 …SC_COMM_WORLD, "Option left: name:-%s (no value) source: %s\n", toptions->names[i], PetscOptionSou… in PetscOptionsLeft()
1976 PetscErrorCode PetscOptionsLeftGet(PetscOptions options, PetscInt *N, char **names[], char **values… in PetscOptionsLeftGet() argument
1982 if (names) PetscAssertPointer(names, 3); in PetscOptionsLeftGet()
1989 if (PetscCIOption(options->names[i])) continue; in PetscOptionsLeftGet()
1993 if (names) PetscCall(PetscMalloc1(n, names)); in PetscOptionsLeftGet()
1997 if (names || values) { in PetscOptionsLeftGet()
2000 if (PetscCIOption(options->names[i])) continue; in PetscOptionsLeftGet()
2001 if (names) (*names)[n] = options->names[i]; in PetscOptionsLeftGet()
2028 PetscErrorCode PetscOptionsLeftRestore(PetscOptions options, PetscInt *N, char **names[], char **va… in PetscOptionsLeftRestore() argument
2033 if (names) PetscAssertPointer(names, 3); in PetscOptionsLeftRestore()
2036 if (names) PetscCall(PetscFree(*names)); in PetscOptionsLeftRestore()