| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex23.c | 181 char lname[PETSC_MAX_PATH_LEN]; in TestFunctionProjection() local 189 PetscCall(PetscStrncpy(lname, "Function ", sizeof(lname))); in TestFunctionProjection() 190 PetscCall(PetscStrlcat(lname, name, sizeof(lname))); in TestFunctionProjection() 191 PetscCall(PetscObjectSetName((PetscObject)x, lname)); in TestFunctionProjection() 197 PetscCall(PetscStrncpy(lname, "Local Function ", sizeof(lname))); in TestFunctionProjection() 198 PetscCall(PetscStrlcat(lname, name, sizeof(lname))); in TestFunctionProjection() 199 PetscCall(PetscObjectSetName((PetscObject)lx, lname)); in TestFunctionProjection() 216 char lname[PETSC_MAX_PATH_LEN]; in TestFieldProjection() local 226 PetscCall(PetscStrncpy(lname, "Local Field Input ", sizeof(lname))); in TestFieldProjection() 227 PetscCall(PetscStrlcat(lname, name, sizeof(lname))); in TestFieldProjection() [all …]
|
| /petsc/src/sys/dll/ |
| H A D | dl.c | 52 PetscErrorCode PetscDLLibraryRetrieve(MPI_Comm comm, const char libname[], char lname[], size_t lle… in PetscDLLibraryRetrieve() argument 79 PetscCall(PetscFileRetrieve(comm, par2, lname, llen, found)); in PetscDLLibraryRetrieve() 92 PetscCall(PetscFileRetrieve(comm, par2, lname, llen, found)); in PetscDLLibraryRetrieve()
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtds.c | 166 …PetscCall(PetscViewerASCIIPrintf(viewer, "Boundary %s (%s) %s\n", b->name, b->lname, DMBoundaryCon… in PetscDSView_Ascii() 3172 const char *lname; in PetscDSAddBoundary() local 3201 PetscCall(PetscObjectGetName((PetscObject)label, &lname)); in PetscDSAddBoundary() 3202 PetscCall(PetscStrallocpy(lname, (char **)&b->lname)); in PetscDSAddBoundary() 3298 …e(PetscDS ds, DMBoundaryConditionType type, const char name[], const char lname[], PetscInt Nv, co… in PetscDSAddBoundaryByName() argument 3307 PetscAssertPointer(lname, 4); in PetscDSAddBoundaryByName() 3319 PetscCall(PetscStrallocpy(lname, (char **)&b->lname)); in PetscDSAddBoundaryByName() 3399 PetscCall(PetscFree(b->lname)); in PetscDSUpdateBoundary() 3401 PetscCall(PetscStrallocpy(name, (char **)&b->lname)); in PetscDSUpdateBoundary() 3564 if (b->lname) PetscCall(DMGetLabel(dm, b->lname, &b->label)); in PetscDSUpdateBoundaryLabels() [all …]
|
| H A D | dtweakform.c | 373 const char *lname = NULL; in PetscWeakFormReplaceLabel_Internal() local 376 if (keys[i].label) PetscCall(PetscObjectGetName((PetscObject)keys[i].label, &lname)); in PetscWeakFormReplaceLabel_Internal() 377 PetscCall(PetscStrcmp(name, lname, &match)); in PetscWeakFormReplaceLabel_Internal() 378 if ((!name && !lname) || match) { in PetscWeakFormReplaceLabel_Internal() 390 const char *lname = NULL; in PetscWeakFormReplaceLabel_Internal() local 393 if (keys[i].label) PetscCall(PetscObjectGetName((PetscObject)keys[i].label, &lname)); in PetscWeakFormReplaceLabel_Internal() 394 PetscCall(PetscStrcmp(name, lname, &match)); in PetscWeakFormReplaceLabel_Internal() 395 if ((!name && !lname) || match) { in PetscWeakFormReplaceLabel_Internal()
|
| /petsc/include/petsc/private/ |
| H A D | petscdsimpl.h | 15 const char *lname; /* The label name if the label is missing from the DM */ member
|
| /petsc/src/dm/impls/plex/transform/interface/ |
| H A D | plextransform.c | 1936 const char *lname; in DMPlexTransformCreateLabels() local 1939 PetscCall(DMGetLabelName(dm, l, &lname)); in DMPlexTransformCreateLabels() 1940 PetscCall(PetscStrcmp(lname, "depth", &isDepth)); in DMPlexTransformCreateLabels() 1942 PetscCall(PetscStrcmp(lname, "celltype", &isCellType)); in DMPlexTransformCreateLabels() 1944 PetscCall(DMCreateLabel(rdm, lname)); in DMPlexTransformCreateLabels() 1945 PetscCall(DMGetLabel(dm, lname, &label)); in DMPlexTransformCreateLabels() 1946 PetscCall(DMGetLabel(rdm, lname, &labelNew)); in DMPlexTransformCreateLabels() 1965 const char *lname; in DMPlexTransformCreateDiscLabels() local 1969 PetscCall(PetscObjectGetName((PetscObject)label, &lname)); in DMPlexTransformCreateDiscLabels() 1970 PetscCall(DMLabelCreate(PETSC_COMM_SELF, lname, &labelNew)); in DMPlexTransformCreateDiscLabels() [all …]
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 6810 const char *lname; in DMCreateLabelAtIndex() local 6824 PetscCall(PetscObjectGetName((PetscObject)orig->label, &lname)); in DMCreateLabelAtIndex() 6825 PetscCall(PetscStrcmp(name, lname, &match)); in DMCreateLabelAtIndex() 7212 const char *lname; in DMHasLabel() local 7220 PetscCall(PetscObjectGetName((PetscObject)next->label, &lname)); in DMHasLabel() 7221 PetscCall(PetscStrcmp(name, lname, hasLabel)); in DMHasLabel() 7257 const char *lname; in DMGetLabel() local 7265 PetscCall(PetscObjectGetName((PetscObject)next->label, &lname)); in DMGetLabel() 7266 PetscCall(PetscStrcmp(name, lname, &hasLabel)); in DMGetLabel() 7328 const char *lname; in DMAddLabel() local [all …]
|
| /petsc/src/ts/tutorials/multirate/ |
| H A D | ex5.c | 612 char lname[256] = "mc", physname[256] = "advect", final_fname[256] = "solution.m"; in main() local 659 …nsFList("-limit", "Name of flux limiter to use", "", limiters, lname, lname, sizeof(lname), NULL)); in main() 670 PetscCall(PetscFunctionListFind(limiters, lname, &ctx.limit)); in main() 671 …etscCheck(ctx.limit, PETSC_COMM_SELF, PETSC_ERR_ARG_UNKNOWN_TYPE, "Limiter '%s' not found", lname); in main()
|
| H A D | ex6.c | 741 char lname[256] = "mc", physname[256] = "advect", final_fname[256] = "solution.m"; in main() local 778 …onsFList("-limit", "Name of flux imiter to use", "", limiters, lname, lname, sizeof(lname), NULL)); in main() 790 PetscCall(PetscFunctionListFind(limiters, lname, &ctx.limit2)); in main() 791 …tscCheck(ctx.limit2, PETSC_COMM_SELF, PETSC_ERR_ARG_UNKNOWN_TYPE, "Limiter '%s' not found", lname); in main()
|
| H A D | ex4.c | 1182 char lname[256] = "mc", physname[256] = "advect", final_fname[256] = "solution.m"; in main() local 1224 …onsFList("-limit", "Name of flux imiter to use", "", limiters, lname, lname, sizeof(lname), NULL)); in main() 1237 PetscCall(PetscFunctionListFind(limiters, lname, &ctx.limit2)); in main() 1238 …tscCheck(ctx.limit2, PETSC_COMM_SELF, PETSC_ERR_ARG_UNKNOWN_TYPE, "Limiter '%s' not found", lname); in main()
|
| H A D | ex8.c | 1083 char lname[256] = "mc", physname[256] = "advect", final_fname[256] = "solution.m"; in main() local 1120 …onsFList("-limit", "Name of flux imiter to use", "", limiters, lname, lname, sizeof(lname), NULL)); in main() 1132 PetscCall(PetscFunctionListFind(limiters, lname, &ctx.limit3)); in main() 1133 …tscCheck(ctx.limit3, PETSC_COMM_SELF, PETSC_ERR_ARG_UNKNOWN_TYPE, "Limiter '%s' not found", lname); in main()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsubmesh.c | 767 const char *lname; in DMPlexShiftLabels_Internal() local 773 PetscCall(DMGetLabelName(dm, l, &lname)); in DMPlexShiftLabels_Internal() 774 PetscCall(PetscStrcmp(lname, "depth", &isDepth)); in DMPlexShiftLabels_Internal() 776 PetscCall(PetscStrcmp(lname, "dim", &isDim)); in DMPlexShiftLabels_Internal() 778 PetscCall(DMCreateLabel(dmNew, lname)); in DMPlexShiftLabels_Internal() 779 PetscCall(DMGetLabel(dm, lname, &label)); in DMPlexShiftLabels_Internal() 780 PetscCall(DMGetLabel(dmNew, lname, &newlabel)); in DMPlexShiftLabels_Internal() 1892 const char *lname; in DMPlexConstructCohesiveCells_Internal() local 1896 PetscCall(DMGetLabelName(sdm, l, &lname)); in DMPlexConstructCohesiveCells_Internal() 1897 PetscCall(PetscStrcmp(lname, "depth", &isDepth)); in DMPlexConstructCohesiveCells_Internal() [all …]
|
| H A D | plexcreate.c | 5566 char lname[PETSC_MAX_PATH_LEN]; in DMSetFromOptions_Plex() local 5568 lname[0] = '\0'; in DMSetFromOptions_Plex() 5569 …lls_label", "Label name for ghost cells boundary", "DMCreate", lname, lname, sizeof(lname), &flg)); in DMSetFromOptions_Plex() 5570 PetscCall(DMPlexConstructGhostCells(dm, flg ? lname : NULL, NULL, &gdm)); in DMSetFromOptions_Plex() 7447 const char *lname; in DMPlexCreateEphemeral() local 7450 PetscCall(DMGetLabelName(bdm, l, &lname)); in DMPlexCreateEphemeral() 7451 PetscCall(PetscStrcmp(lname, "depth", &isDepth)); in DMPlexCreateEphemeral() 7453 PetscCall(PetscStrcmp(lname, "celltype", &isCellType)); in DMPlexCreateEphemeral() 7455 PetscCall(DMCreateLabel(*dm, lname)); in DMPlexCreateEphemeral() 7456 PetscCall(DMGetLabel(bdm, lname, &label)); in DMPlexCreateEphemeral() [all …]
|
| H A D | plex.c | 1141 char lname[PETSC_MAX_PATH_LEN]; in DMPlexView_Ascii() local 1190 …ptions, ((PetscObject)viewer)->prefix, "-dm_plex_view_label_filter", lname, sizeof(lname), &lflg)); in DMPlexView_Ascii() 1206 PetscCall(DMGetLabel(dm, lname, &lbl)); in DMPlexView_Ascii() 9295 const char *lname, *prefix; in DMPlexCreateLabelField() local 9308 PetscCall(PetscObjectGetName((PetscObject)label, &lname)); in DMPlexCreateLabelField() 9309 PetscCall(PetscSNPrintf(name, sizeof(name), "%s%s_", prefix ? prefix : "", lname)); in DMPlexCreateLabelField() 9317 PetscCall(PetscObjectSetName((PetscObject)*val, lname)); in DMPlexCreateLabelField()
|
| /petsc/src/dm/label/ |
| H A D | dmlabel.c | 1991 const char *lname = NULL; in DMLabelDistribute() local 2009 PetscCall(PetscObjectGetName((PetscObject)label, &lname)); in DMLabelDistribute() 2010 PetscCall(PetscStrlen(lname, &len)); in DMLabelDistribute() 2015 if (rank == 0) PetscCall(PetscArraycpy(name, lname, nameSize + 1)); in DMLabelDistribute() 2111 const char *lname; in DMLabelGather() local 2126 PetscCall(PetscObjectGetName((PetscObject)label, &lname)); in DMLabelGather() 2127 PetscCall(PetscStrlen(lname, &len)); in DMLabelGather() 2132 if (rank == 0) PetscCall(PetscArraycpy(name, lname, nameSize + 1)); in DMLabelGather()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | iterativ.c | 808 char lname[PETSC_MAX_PATH_LEN]; in KSPMonitorErrorDrawLGCreate() local 812 PetscCall(PetscStrncpy(lname, fname, PETSC_MAX_PATH_LEN)); in KSPMonitorErrorDrawLGCreate() 813 PetscCall(PetscStrlcat(lname, " Error", PETSC_MAX_PATH_LEN)); in KSPMonitorErrorDrawLGCreate() 814 PetscCall(PetscStrallocpy(lname, &names[f])); in KSPMonitorErrorDrawLGCreate()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex9.c | 1389 char lname[256] = "mc", physname[256] = "advect", final_fname[256] = "solution.m"; in main() local 1442 …nsFList("-limit", "Name of flux limiter to use", "", limiters, lname, lname, sizeof(lname), NULL)); in main() 1453 PetscCall(PetscFunctionListFind(limiters, lname, &ctx.limit)); in main() 1454 …etscCheck(ctx.limit, PETSC_COMM_SELF, PETSC_ERR_ARG_UNKNOWN_TYPE, "Limiter '%s' not found", lname); in main()
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5.c | 565 size_t lname; in VecView_Plex_Local_HDF5_Internal() local 631 PetscCall(PetscStrlen(name, &lname)); in VecView_Plex_Local_HDF5_Internal() 632 if (lname) { in VecView_Plex_Local_HDF5_Internal() 1891 static herr_t ReadLabelHDF5_Static(hid_t g_id, const char *lname, const H5L_info_t *info, void *op_… in ReadLabelHDF5_Static() argument 1900 PetscCall(DMHasLabel(dm, lname, &flg)); in ReadLabelHDF5_Static() 1901 if (flg) PetscCall(DMRemoveLabel(dm, lname, NULL)); in ReadLabelHDF5_Static() 1902 ierr = DMCreateLabel(dm, lname); in ReadLabelHDF5_Static() 1904 ierr = DMGetLabel(dm, lname, &ctx->label); in ReadLabelHDF5_Static() 1906 ierr = PetscViewerHDF5PushGroup(ctx->viewer, lname); in ReadLabelHDF5_Static() 1909 …PetscCallHDF5Return(err, H5Literate_by_name, (g_id, lname, H5_INDEX_NAME, H5_ITER_NATIVE, &idx, Re… in ReadLabelHDF5_Static()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dmadapt.c | 1205 char lname[PETSC_MAX_PATH_LEN]; in DMAdaptorMonitorErrorDrawLGCreate() local 1209 PetscCall(PetscStrncpy(lname, fname, PETSC_MAX_PATH_LEN)); in DMAdaptorMonitorErrorDrawLGCreate() 1210 PetscCall(PetscStrlcat(lname, " Error", PETSC_MAX_PATH_LEN)); in DMAdaptorMonitorErrorDrawLGCreate() 1211 PetscCall(PetscStrallocpy(lname, &names[f])); in DMAdaptorMonitorErrorDrawLGCreate()
|