Home
last modified time | relevance | path

Searched refs:goff (Results 1 – 10 of 10) sorted by relevance

/petsc/src/dm/impls/plex/
H A Dplexpreallocate.c575 PetscInt numAdj = PETSC_DETERMINE, dof, cdof, off, goff, d, q, anDof; in DMPlexCreateAdjacencySection_Static() local
581 PetscCall(PetscSectionGetOffset(sectionGlobal, p, &goff)); in DMPlexCreateAdjacencySection_Static()
590 PetscCall(PetscSectionSetDof(sectionAdj, goff + d, rdof)); in DMPlexCreateAdjacencySection_Static()
597 PetscCall(PetscSectionGetOffset(sectionGlobal, p, &goff)); in DMPlexCreateAdjacencySection_Static()
611 …for (d = goff; d < goff + dof - cdof; ++d) PetscCall(PetscSectionAddDof(sectionAdj, d, ndof - ncdo… in DMPlexCreateAdjacencySection_Static()
615 … for (d = goff; d < goff + dof - cdof; ++d) PetscCall(PetscSectionAddDof(sectionAdj, d, anDof)); in DMPlexCreateAdjacencySection_Static()
627 PetscInt numAdj = PETSC_DETERMINE, dof, cdof, off, goff, d, q, anDof, anOff; in DMPlexCreateAdjacencySection_Static() local
633 PetscCall(PetscSectionGetOffset(sectionGlobal, p, &goff)); in DMPlexCreateAdjacencySection_Static()
644 PetscCall(PetscSectionGetOffset(sectionAdj, goff + d, &aoff)); in DMPlexCreateAdjacencySection_Static()
656 for (d = goff; d < goff + dof - cdof; ++d) { in DMPlexCreateAdjacencySection_Static()
H A Dplex.c10915 PetscInt gdof, goff; in DMCreateSubDomainDM_Plex() local
10921 PetscCall(PetscSectionGetOffset(sectionGlobal, point, &goff)); in DMCreateSubDomainDM_Plex()
10933 for (fc = 0; fc < fdof - fcdof; ++fc, ++subOff) subIndices[subOff] = goff + poff + fc; in DMCreateSubDomainDM_Plex()
/petsc/src/vec/vec/utils/
H A Dvsection.c211 PetscInt gdof, goff; in PetscSectionGetField_Internal() local
217 PetscCall(PetscSectionGetOffset(sectionGlobal, p, &goff)); in PetscSectionGetField_Internal()
224 for (fc = 0; fc < fdof; ++fc, ++subOff) subIndices[subOff] = goff + poff + fc; in PetscSectionGetField_Internal()
/petsc/src/snes/tutorials/
H A Dex7.c246 PetscInt yoff, goff; in ComputeResidualLocal() local
251 PetscCall(PetscSectionGetOffset(sGauge, supp[2 * d + 0], &goff)); in ComputeResidualLocal()
252 PetscCall(ComputeAction(d, PETSC_FALSE, &link[goff], &ua[yoff], &fa[xoff])); in ComputeResidualLocal()
256 PetscCall(PetscSectionGetOffset(sGauge, supp[2 * d + 1], &goff)); in ComputeResidualLocal()
257 PetscCall(ComputeAction(d, PETSC_TRUE, &link[goff], &ua[yoff], &fa[xoff])); in ComputeResidualLocal()
/petsc/src/dm/interface/
H A Ddmi.c168 PetscInt gdof, goff; in PetscSectionSelectFields_Private() local
174 PetscCall(PetscSectionGetOffset(gs, point, &goff)); in PetscSectionSelectFields_Private()
202 subIndices[subOff++] = goff + poff + pfoff; in PetscSectionSelectFields_Private()
209 … for (PetscInt fc = 0; fc < fdof - fcdof; ++fc, ++subOff) subIndices[subOff] = goff + poff + fc; in PetscSectionSelectFields_Private()
H A Ddm.c2003 PetscInt gdof, goff; in DMCreateFieldIS() local
2007 PetscCall(PetscSectionGetOffset(sectionGlobal, p, &goff)); in DMCreateFieldIS()
2013 … for (fc = 0; fc < fdof - fcdof; ++fc, ++fieldSizes[f]) fieldIndices[f][fieldSizes[f]] = goff++; in DMCreateFieldIS()
3165 PetscInt dof, gdof, cdof, gcdof, off, goff, d, e; in DMLocalToGlobalBegin() local
3172 PetscCall(PetscSectionGetOffset(gs, p, &goff)); in DMLocalToGlobalBegin()
3174 if (!gdof || goff < 0) continue; in DMLocalToGlobalBegin()
3178 for (d = 0; d < dof; ++d) gArray[goff - gStart + d] = lArray[off + d]; in DMLocalToGlobalBegin()
3190 gArray[goff - gStart + e++] = lArray[off + d]; in DMLocalToGlobalBegin()
4579 PetscInt dof, cdof, off, gdof, gcdof, goff, gsize, d; in DMDefaultSectionCheckConsistency_Internal() local
4586 PetscCall(PetscSectionGetOffset(globalSection, p, &goff)); in DMDefaultSectionCheckConsistency_Internal()
[all …]
/petsc/include/petsc/private/
H A Ddmimpl.h523 const PetscInt goff = gs->atlasOff[point - s->pStart]; in DMGetGlobalFieldOffset_Private() local
533 *start = goff + (goff < 0 ? loff - lfoff + ffcdof : lfoff - loff - ffcdof); in DMGetGlobalFieldOffset_Private()
/petsc/src/vec/is/sf/utils/
H A Dsfutils.c165 PetscInt dof, cdof, off, gdof, gcdof, goff, gsize, d, c; in PetscSFSetGraphSection() local
173 PetscCall(PetscSectionGetOffset(globalSection, p, &goff)); in PetscSFSetGraphSection()
190 PetscInt offset = -(goff + 1) + d, ir; in PetscSFSetGraphSection()
196 …cInt_FMT " mapped to invalid process %d (%" PetscInt_FMT ", %" PetscInt_FMT ")", p, r, gdof, goff); in PetscSFSetGraphSection()
203 remote[l].index = goff + d - ranges[rank]; in PetscSFSetGraphSection()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c605 PetscInt gdof, goff, val; in VecView_Plex_Local_HDF5_Internal() local
611 PetscCall(PetscSectionGetOffset(sectionGlobal, p, &goff)); in VecView_Plex_Local_HDF5_Internal()
618 for (fc = 0; fc < fdof; ++fc, ++subOff) suba[subOff] = ga[goff + poff + fc - gstart]; in VecView_Plex_Local_HDF5_Internal()
621 … for (fc = 0; fc < fdof; ++fc, ++newOff) suba[subSize + newOff] = ga[goff + poff + fc - gstart]; in VecView_Plex_Local_HDF5_Internal()
2881 PetscInt dof, cdof, i, j, off, goff; in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() local
2886 goff = globalOffsets[p - pStart]; in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2895 goffs[m++] = goff++; in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2897 else if (!leafIncludeConstraints && rootIncludeConstraints) ++goff; in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c1490 PetscInt goff; in PCPatchCreateCellPatchDiscretisationInfo() local
1517 PetscCall(PetscSectionGetOffset(gtolCounts, v, &goff)); in PCPatchCreateCellPatchDiscretisationInfo()
1524 if (globalDof >= 0) globalDofsArray[goff + localDof] = globalDof; in PCPatchCreateCellPatchDiscretisationInfo()
1529 PetscCall(PetscSectionGetOffset(gtolCountsWithArtificial, v, &goff)); in PCPatchCreateCellPatchDiscretisationInfo()
1535 if (globalDof >= 0) globalDofsArrayWithArtificial[goff + localDof] = globalDof; in PCPatchCreateCellPatchDiscretisationInfo()
1540 PetscCall(PetscSectionGetOffset(gtolCountsWithAll, v, &goff)); in PCPatchCreateCellPatchDiscretisationInfo()
1546 if (globalDof >= 0) globalDofsArrayWithAll[goff + localDof] = globalDof; in PCPatchCreateCellPatchDiscretisationInfo()