| /petsc/src/vec/is/utils/hdf5/ |
| H A D | hdf5io.c | 14 PetscInt *cind; member 52 h->cind = NULL; in PetscViewerHDF5ReadInitialize_Private() 67 PetscCall(PetscFree((*ctx)->cind)); in PetscViewerHDF5ReadFinalize_Private() 108 PetscCall(PetscMalloc1(cmap->N, &ctx->cind)); in PetscViewerHDF5ReadSizes_Private() 117 PetscCallMPI(MPI_Allgatherv(lcind, n, MPIU_INT, ctx->cind, counts, displs, MPIU_INT, comm)); in PetscViewerHDF5ReadSizes_Private() 267 for (PetscInt j = 0, inc = 0; j < h->cind[i * 3 + 0]; ++j, ++off, inc += h->cind[i * 3 + 1]) { in PetscViewerHDF5Load_Internal() 272 if (off >= map->rstart) ind[off - map->rstart] = h->cind[i * 3 + 2] + inc; in PetscViewerHDF5Load_Internal()
|
| /petsc/src/tao/constrained/impls/ipm/ |
| H A D | ipm.c | 230 PetscInt *cind, *xind, *ucind, *uceind, *stepind; in IPMInitializeBounds() local 238 cind = xind = ucind = uceind = stepind = NULL; in IPMInitializeBounds() 300 PetscCall(PetscMalloc1(ipmP->nb, &cind)); in IPMInitializeBounds() 307 for (i = ucstart; i < ucend; i++) cind[counter++] = i; in IPMInitializeBounds() 308 PetscCall(ISCreateGeneral(comm, counter, cind, PETSC_COPY_VALUES, &isuc)); in IPMInitializeBounds() 309 PetscCall(ISCreateGeneral(comm, counter, cind, PETSC_COPY_VALUES, &isc)); in IPMInitializeBounds() 333 cind[i] = xl_offset + i; in IPMInitializeBounds() 337 PetscCall(ISCreateGeneral(comm, nloc, cind, PETSC_COPY_VALUES, &isc)); in IPMInitializeBounds() 360 cind[i] = xu_offset + i; in IPMInitializeBounds() 364 PetscCall(ISCreateGeneral(comm, nloc, cind, PETSC_COPY_VALUES, &isc)); in IPMInitializeBounds() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 6913 PetscInt off, cind = 0, k; in updatePoint_private() local 6938 if ((cind < cdof) && (k == cdofs[cind])) { in updatePoint_private() 6939 ++cind; in updatePoint_private() 6946 if ((cind < cdof) && (k == cdofs[cind])) { in updatePoint_private() 6947 ++cind; in updatePoint_private() 6956 if ((cind < cdof) && (k == cdofs[cind])) { in updatePoint_private() 6957 ++cind; in updatePoint_private() 6964 if ((cind < cdof) && (k == cdofs[cind])) { in updatePoint_private() 6965 ++cind; in updatePoint_private() 6981 PetscInt off, cind = 0, k; in updatePointBC_private() local [all …]
|
| H A D | plexfem.c | 3792 const PetscInt cind = c - cStart; in DMPlexGetCellFields() local 3797 for (i = 0; i < totDim; ++i) ul[cind * totDim + i] = x[i]; in DMPlexGetCellFields() 3801 for (i = 0; i < totDim; ++i) ul_t[cind * totDim + i] = x_t[i]; in DMPlexGetCellFields() 3808 for (i = 0; i < totDimAux; ++i) al[cind * totDimAux + i] = x[i]; in DMPlexGetCellFields() 3894 const PetscInt cind = c - cStart; in DMPlexGetHybridCellFields() local 3896 …PetscScalar *ul = &(*u)[cind * totDim], *ul_t = PetscSafePointerPlusOffset(*u_t, cind * totDim); in DMPlexGetHybridCellFields() 3959 PetscScalar *al = &(*a)[cind * totDimAux]; in DMPlexGetHybridCellFields() 4025 const PetscInt cind = c - cStart; in DMPlexGetHybridFields() local 4033 PetscScalar *closure = NULL, *xl = &x[s][cind * tdX]; in DMPlexGetHybridFields() 4541 const PetscInt cind = c - cStart; in DMPlexComputeResidual_Patch_Internal() local [all …]
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 164 const PetscInt *cind; in PetscSFSetGraphSection() local 170 PetscCall(PetscSectionGetConstraintIndices(localSection, p, &cind)); in PetscSFSetGraphSection() 181 if ((c < cdof) && (cind[c] == d)) { in PetscSFSetGraphSection()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 3137 const PetscInt *cind; in PetscSectionPermute() local 3142 PetscCall(PetscSectionGetConstraintIndices(s, p, &cind)); in PetscSectionPermute() 3143 PetscCall(PetscSectionSetConstraintIndices(sNew, perm[p], cind)); in PetscSectionPermute() 3148 PetscCall(PetscSectionGetFieldConstraintIndices(s, p, f, &cind)); in PetscSectionPermute() 3149 PetscCall(PetscSectionSetFieldConstraintIndices(sNew, perm[p], f, cind)); in PetscSectionPermute()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 1128 PetscInt bdof, cdof, dof, off, c, cind; in DMGetLocalToGlobalMapping() local 1139 for (c = 0, cind = 0; c < dof; ++c, ++l) { in DMGetLocalToGlobalMapping() 1140 if (cind < cdof && c == cdofs[cind]) { in DMGetLocalToGlobalMapping() 1142 cind++; in DMGetLocalToGlobalMapping() 1144 ltog[l] = (off < 0 ? -(off + 1) : off) + c - cind; in DMGetLocalToGlobalMapping() 3182 PetscInt cind = 0; in DMLocalToGlobalBegin() local 3186 if ((cind < cdof) && (d == cdofs[cind])) { in DMLocalToGlobalBegin() 3187 ++cind; in DMLocalToGlobalBegin()
|
| /petsc/src/dm/impls/plex/transform/interface/ |
| H A D | plextransform.c | 1008 PetscInt newp = ctSN, cind; in DMPlexTransformGetTargetPoint() local 1014 PetscCall(DMLabelGetValueIndex(trType, rt, &cind)); in DMPlexTransformGetTargetPoint() 1018 cind = ct; in DMPlexTransformGetTargetPoint() 1021 off = tr->offset[cind * DM_NUM_POLYTOPES + ctNew]; in DMPlexTransformGetTargetPoint()
|