Lines Matching refs:off

938       PetscInt point = closure[cl], depth, dof, off, d, p;  in DMPlexView_Ascii_Geometry()  local
944 PetscCall(PetscSectionGetOffset(coordSection, point, &off)); in DMPlexView_Ascii_Geometry()
950 … PetscCall(PetscViewerASCIIPrintf(viewer, "%g", (double)PetscRealPart(a[off + p * dim + d]))); in DMPlexView_Ascii_Geometry()
1045 PetscInt dof, off, s; in DMPlexView_Ascii() local
1048 PetscCall(PetscSectionGetOffset(mesh->supportSection, p, &off)); in DMPlexView_Ascii()
1049 …for (s = off; s < off + dof; ++s) PetscCall(PetscViewerASCIISynchronizedPrintf(viewer, "[%d]: %" P… in DMPlexView_Ascii()
1055 PetscInt dof, off, c; in DMPlexView_Ascii() local
1058 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexView_Ascii()
1059 …for (c = off; c < off + dof; ++c) PetscCall(PetscViewerASCIISynchronizedPrintf(viewer, "[%d]: %" P… in DMPlexView_Ascii()
1089 PetscInt dof, off; in DMPlexView_Ascii() local
1093 PetscCall(PetscSectionGetOffset(coordSection, p, &off)); in DMPlexView_Ascii()
1095 …intf(viewer, " (%4" PetscInt_FMT ") dof %2" PetscInt_FMT " offset %3" PetscInt_FMT, p, dof, off)); in DMPlexView_Ascii()
1096 PetscCall(DMPlexView_Ascii_Coordinates(viewer, cs, dof, &array[off])); in DMPlexView_Ascii()
1102 PetscCall(PetscSectionGetOffset(coordSectionCell, p, &off)); in DMPlexView_Ascii()
1104 …intf(viewer, " (%4" PetscInt_FMT ") dof %2" PetscInt_FMT " offset %3" PetscInt_FMT, p, dof, off)); in DMPlexView_Ascii()
1105 PetscCall(DMPlexView_Ascii_Coordinates(viewer, cs, dof, &arrayCell[off])); in DMPlexView_Ascii()
1269 PetscInt off, dof, d; in DMPlexView_Ascii() local
1274 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexView_Ascii()
1278 tcoords[d] = (double)(scale * PetscRealPart(coords[off + d])); in DMPlexView_Ascii()
3206 PetscInt off; in DMPlexGetCone() local
3211 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexGetCone()
3212 *cone = PetscSafePointerPlusOffset(mesh->cones, off); in DMPlexGetCone()
3445 PetscInt dof, off, c; in DMPlexSetCone() local
3451 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexSetCone()
3458 mesh->cones[off + c] = cone[c]; in DMPlexSetCone()
3461 for (c = 0; c < dof; ++c) mesh->cones[off + c] = cone[c]; in DMPlexSetCone()
3497 PetscInt off; in DMPlexGetConeOrientation() local
3506 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexGetConeOrientation()
3508 *coneOrientation = &mesh->coneOrientations[off]; in DMPlexGetConeOrientation()
3535 PetscInt dof, off, c; in DMPlexSetConeOrientation() local
3541 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexSetConeOrientation()
3548 PetscCall(PetscSectionGetDof(mesh->coneSection, mesh->cones[off + c], &cdof)); in DMPlexSetConeOrientation()
3550 mesh->coneOrientations[off + c] = o; in DMPlexSetConeOrientation()
3553 for (c = 0; c < dof; ++c) mesh->coneOrientations[off + c] = coneOrientation[c]; in DMPlexSetConeOrientation()
3577 PetscInt dof, off; in DMPlexInsertCone() local
3588 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexInsertCone()
3589 mesh->cones[off + conePos] = conePoint; in DMPlexInsertCone()
3615 PetscInt dof, off; in DMPlexInsertConeOrientation() local
3625 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexInsertConeOrientation()
3626 mesh->coneOrientations[off + conePos] = coneOrientation; in DMPlexInsertConeOrientation()
3672 PetscInt off; in DMPlexGetOrientedCone() local
3681 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexGetOrientedCone()
3682 if (cone) *cone = PetscSafePointerPlusOffset(mesh->cones, off); in DMPlexGetOrientedCone()
3683 if (ornt) *ornt = PetscSafePointerPlusOffset(mesh->coneOrientations, off); in DMPlexGetOrientedCone()
3796 PetscInt off; in DMPlexGetSupport() local
3801 PetscCall(PetscSectionGetOffset(mesh->supportSection, p, &off)); in DMPlexGetSupport()
3802 *support = PetscSafePointerPlusOffset(mesh->supports, off); in DMPlexGetSupport()
3827 PetscInt dof, off, c; in DMPlexSetSupport() local
3834 PetscCall(PetscSectionGetOffset(mesh->supportSection, p, &off)); in DMPlexSetSupport()
3838 mesh->supports[off + c] = support[c]; in DMPlexSetSupport()
3862 PetscInt dof, off; in DMPlexInsertSupport() local
3868 PetscCall(PetscSectionGetOffset(mesh->supportSection, p, &off)); in DMPlexInsertSupport()
3872 mesh->supports[off + supportPos] = supportPoint; in DMPlexInsertSupport()
3985 const PetscInt off = s->atlasOff[ps]; in DMPlexGetTransitiveClosure_Hot_Private() local
3988 *arr = mesh->cones + off; in DMPlexGetTransitiveClosure_Hot_Private()
3989 *ornt = mesh->coneOrientations + off; in DMPlexGetTransitiveClosure_Hot_Private()
3993 const PetscInt off = s->atlasOff[ps]; in DMPlexGetTransitiveClosure_Hot_Private() local
3996 *arr = mesh->supports + off; in DMPlexGetTransitiveClosure_Hot_Private()
4018 PetscInt off = 0, tmpSize, t; in DMPlexGetTransitiveClosure_Depth1_Private() local
4034 closure[off++] = p; in DMPlexGetTransitiveClosure_Depth1_Private()
4035 closure[off++] = 0; in DMPlexGetTransitiveClosure_Depth1_Private()
4037 closure[off++] = tmp[t]; in DMPlexGetTransitiveClosure_Depth1_Private()
4038 closure[off++] = tmpO ? tmpO[t] : 0; in DMPlexGetTransitiveClosure_Depth1_Private()
4044 closure[off++] = p; in DMPlexGetTransitiveClosure_Depth1_Private()
4045 closure[off++] = ornt; in DMPlexGetTransitiveClosure_Depth1_Private()
4050 closure[off++] = tmp[arr[t]]; in DMPlexGetTransitiveClosure_Depth1_Private()
4051 closure[off++] = tmpO ? DMPolytopeTypeComposeOrientation(ft, ornt, tmpO[t]) : 0; in DMPlexGetTransitiveClosure_Depth1_Private()
4398 PetscInt dof, off, c; in DMPlexSymmetrize() local
4401 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexSymmetrize()
4402 …for (c = off; c < off + dof; ++c) PetscCall(PetscSectionAddDof(mesh->supportSection, mesh->cones[c… in DMPlexSymmetrize()
4410 PetscInt dof, off, c; in DMPlexSymmetrize() local
4413 PetscCall(PetscSectionGetOffset(mesh->coneSection, p, &off)); in DMPlexSymmetrize()
4414 for (c = off; c < off + dof; ++c) { in DMPlexSymmetrize()
4848 PetscInt dof, off, p, c, m; in DMPlexGetJoin() local
4861 PetscCall(PetscSectionGetOffset(mesh->supportSection, points[0], &off)); in DMPlexGetJoin()
4862 for (joinSize = 0; joinSize < dof; ++joinSize) join[i][joinSize] = mesh->supports[off + joinSize]; in DMPlexGetJoin()
4868 PetscCall(PetscSectionGetOffset(mesh->supportSection, points[p], &off)); in DMPlexGetJoin()
4870 const PetscInt point = mesh->supports[off + c]; in DMPlexGetJoin()
5057 PetscInt dof, off, p, c, m; in DMPlexGetMeet() local
5070 PetscCall(PetscSectionGetOffset(mesh->coneSection, points[0], &off)); in DMPlexGetMeet()
5071 for (meetSize = 0; meetSize < dof; ++meetSize) meet[i][meetSize] = mesh->cones[off + meetSize]; in DMPlexGetMeet()
5077 PetscCall(PetscSectionGetOffset(mesh->coneSection, points[p], &off)); in DMPlexGetMeet()
5079 const PetscInt point = mesh->cones[off + c]; in DMPlexGetMeet()
6184 const PetscInt off = oft + PetscSqr(k - 1); in DMPlexSetClosurePermutationTensor() local
6185 const PetscInt ofk = off + PetscSqr(k - 1); in DMPlexSetClosurePermutationTensor()
6235 for (o = off + j * (k - 1); o < off + (j + 1) * (k - 1); ++o) in DMPlexSetClosurePermutationTensor()
6381 PetscInt dof, off, d; in DMPlexVecGetClosure_Depth1_Static() local
6385 PetscCall(PetscSectionGetOffset(section, point, &off)); in DMPlexVecGetClosure_Depth1_Static()
6386 varr = PetscSafePointerPlusOffset(vArray, off); in DMPlexVecGetClosure_Depth1_Static()
6393 PetscInt dof, off, d; in DMPlexVecGetClosure_Depth1_Static() local
6398 PetscCall(PetscSectionGetOffset(section, cp, &off)); in DMPlexVecGetClosure_Depth1_Static()
6399 varr = PetscSafePointerPlusOffset(vArray, off); in DMPlexVecGetClosure_Depth1_Static()
6446 PetscInt dof, off; in DMPlexGetCompressedClosure() local
6449 PetscCall(PetscSectionGetOffset(*clSec, point, &off)); in DMPlexGetCompressedClosure()
6452 pts = PetscSafePointerPlusOffset((PetscInt *)cla, off); in DMPlexGetCompressedClosure()
6492 PetscInt dof, off, d; in DMPlexVecGetClosure_Static() local
6496 PetscCall(PetscSectionGetOffset(section, point, &off)); in DMPlexVecGetClosure_Static()
6497 varr = PetscSafePointerPlusOffset(vArray, off); in DMPlexVecGetClosure_Static()
6913 PetscInt off, cind = 0, k; in updatePoint_private() local
6917 PetscCall(PetscSectionGetOffset(section, point, &off)); in updatePoint_private()
6918 a = &array[off]; in updatePoint_private()
6981 PetscInt off, cind = 0, k; in updatePointBC_private() local
6985 PetscCall(PetscSectionGetOffset(section, point, &off)); in updatePointBC_private()
6986 a = &array[off]; in updatePointBC_private()
7215 PetscInt pStart, pEnd, p, numPoints, off, dof; in DMPlexVecSetClosure_Depth1_Static() local
7223 for (p = 0, off = 0; p <= numPoints; ++p, off += dof) { in DMPlexVecSetClosure_Depth1_Static()
7243 for (k = 0; k < dof; ++k) a[k] += values[off + k]; in DMPlexVecSetClosure_Depth1_Static()
7245 for (k = 0; k < dof; ++k) a[k] += values[off + dof - k - 1]; in DMPlexVecSetClosure_Depth1_Static()
7255 a[k] += values[off + k]; in DMPlexVecSetClosure_Depth1_Static()
7263 a[k] += values[off + dof - k - 1]; in DMPlexVecSetClosure_Depth1_Static()
7387 PetscInt dof, off; in DMPlexVecSetClosure() local
7394 for (p = 0, off = 0; p < numPoints; p++, off += dof) { in DMPlexVecSetClosure()
7399 …tePoint_private(section, point, dof, insert, PETSC_FALSE, perm, flip, clperm, values, off, array)); in DMPlexVecSetClosure()
7403 for (p = 0, off = 0; p < numPoints; p++, off += dof) { in DMPlexVecSetClosure()
7408 …atePoint_private(section, point, dof, insert, PETSC_TRUE, perm, flip, clperm, values, off, array)); in DMPlexVecSetClosure()
7412 for (p = 0, off = 0; p < numPoints; p++, off += dof) { in DMPlexVecSetClosure()
7417 …scCall(updatePointBC_private(section, point, dof, insert, perm, flip, clperm, values, off, array)); in DMPlexVecSetClosure()
7421 for (p = 0, off = 0; p < numPoints; p++, off += dof) { in DMPlexVecSetClosure()
7426 …pdatePoint_private(section, point, dof, add, PETSC_FALSE, perm, flip, clperm, values, off, array)); in DMPlexVecSetClosure()
7430 for (p = 0, off = 0; p < numPoints; p++, off += dof) { in DMPlexVecSetClosure()
7435 …updatePoint_private(section, point, dof, add, PETSC_TRUE, perm, flip, clperm, values, off, array)); in DMPlexVecSetClosure()
7439 for (p = 0, off = 0; p < numPoints; p++, off += dof) { in DMPlexVecSetClosure()
7444 …PetscCall(updatePointBC_private(section, point, dof, add, perm, flip, clperm, values, off, array)); in DMPlexVecSetClosure()
7622 …Internal(PetscSection section, PetscBool islocal, PetscInt point, PetscInt off, PetscInt *loff, Pe… in DMPlexGetIndicesPoint_Internal() argument
7638 indices[ind] = off + k; in DMPlexGetIndicesPoint_Internal()
7648 indices[ind] = -(off + k + 1); in DMPlexGetIndicesPoint_Internal()
7651 indices[ind] = off + k - (islocal ? 0 : cind); in DMPlexGetIndicesPoint_Internal()
7698 …Internal(PetscSection section, PetscBool islocal, PetscInt point, PetscInt off, PetscInt foffs[], … in DMPlexGetIndicesPointFields_Internal() argument
7718 indices[ind] = off + foff + b; in DMPlexGetIndicesPointFields_Internal()
7727 indices[ind] = -(off + foff + b + 1); in DMPlexGetIndicesPointFields_Internal()
7730 indices[ind] = off + foff + b - (islocal ? 0 : cind); in DMPlexGetIndicesPointFields_Internal()
8302 PetscInt off = 0, idxOff; in DMPlexGetClosureIndices_Internal() local
8312 …oint_Internal(section, isLocal, pnt, idxOff < 0 ? -(idxOff + 1) : idxOff, &off, PETSC_FALSE, perm,… in DMPlexGetClosureIndices_Internal()
8564 …bcells, maxFPoints, numFPoints, numCPoints, numFIndices, numCIndices, dof, off, globalOff, pStart,… in DMPlexMatSetClosureRefined() local
8686 for (p = 0, off = 0; p < numFPoints; p++) { in DMPlexMatSetClosureRefined()
8690 …C_FALSE, ftotpoints[2 * p], globalOff < 0 ? -(globalOff + 1) : globalOff, &off, PETSC_FALSE, perm,… in DMPlexMatSetClosureRefined()
8692 for (p = 0, off = 0; p < numCPoints; p++) { in DMPlexMatSetClosureRefined()
8696 …ETSC_FALSE, cpoints[2 * p], globalOff < 0 ? -(globalOff + 1) : globalOff, &off, PETSC_FALSE, perm,… in DMPlexMatSetClosureRefined()
8728 …bcells, maxFPoints, numFPoints, numCPoints, numFIndices, numCIndices, dof, off, globalOff, pStart,… in DMPlexMatGetClosureIndicesRefined() local
8844 for (p = 0, off = 0; p < numFPoints; p++) { in DMPlexMatGetClosureIndicesRefined()
8848 …C_FALSE, ftotpoints[2 * p], globalOff < 0 ? -(globalOff + 1) : globalOff, &off, PETSC_FALSE, perm,… in DMPlexMatGetClosureIndicesRefined()
8850 for (p = 0, off = 0; p < numCPoints; p++) { in DMPlexMatGetClosureIndicesRefined()
8854 …ETSC_FALSE, cpoints[2 * p], globalOff < 0 ? -(globalOff + 1) : globalOff, &off, PETSC_FALSE, perm,… in DMPlexMatGetClosureIndicesRefined()
9322 PetscInt cval, dof, off; in DMPlexCreateLabelField() local
9327 PetscCall(PetscSectionGetOffset(section, p, &off)); in DMPlexCreateLabelField()
9328 for (PetscInt d = 0; d < dof; d++) v[off + d] = cval; in DMPlexCreateLabelField()
10716 …PetscInt pStart, pEnd, p, sStart, sEnd, dof, aDof, aOff, off, nnz, annz, m, n, q, a, offset… in DMPlexCreateConstraintMatrix_Anchors() local
10761 PetscCall(PetscSectionGetFieldOffset(cSec, p, f, &off)); in DMPlexCreateConstraintMatrix_Anchors()
10762 for (q = 0; q < dof; q++) i[off + q + 1] = i[off + q] + annz; in DMPlexCreateConstraintMatrix_Anchors()
10774 PetscCall(PetscSectionGetOffset(cSec, p, &off)); in DMPlexCreateConstraintMatrix_Anchors()
10775 for (q = 0; q < dof; q++) i[off + q + 1] = i[off + q] + annz; in DMPlexCreateConstraintMatrix_Anchors()