| /petsc/src/dm/dt/fe/interface/ |
| H A D | fe.c | 2694 const PetscInt fOff = i * totDim + j; in PetscFEUpdateElementMat_Internal() local 2696 …for (PetscInt gc = 0; gc < NcJ; ++gc) elemMat[fOff] += bI * g0[fc * NcJ + gc] * tmpBasisJ[g * NcJ … in PetscFEUpdateElementMat_Internal() 2719 const PetscInt fOff = i * totDim + j; in PetscFEUpdateElementMat_Internal() 2724 …for (PetscInt df = 0; df < dE; ++df) elemMat[fOff] += bI * g1[(fc * NcJ + gc) * dE + df] * tmpBasi… in PetscFEUpdateElementMat_Internal() 2749 const PetscInt fOff = i * totDim + j; in PetscFEUpdateElementMat_Internal() 2754 …for (PetscInt df = 0; df < dE; ++df) elemMat[fOff] += tmpBasisDerI[fidx * dE + df] * g2[(fc * NcJ … in PetscFEUpdateElementMat_Internal() 2779 const PetscInt fOff = i * totDim + j; in PetscFEUpdateElementMat_Internal() 2785 …for (PetscInt dg = 0; dg < dE; ++dg) elemMat[fOff] += tmpBasisDerI[fidx * dE + df] * g3[((fc * NcJ… in PetscFEUpdateElementMat_Internal() 2846 const PetscInt fOff = eOffset + i * totDim + j; in PetscFEUpdateElementMat_Hybrid_Internal() local 2848 elemMat[fOff] += tmpBasisI[fidx] * g0[fc * NcJ + gc] * tmpBasisJ[gidx]; in PetscFEUpdateElementMat_Hybrid_Internal() [all …]
|
| /petsc/src/ts/utils/dmplexlandau/kokkos/ |
| H A D | landau.kokkos.cxx | 708 … const PetscInt fOff = (fieldA * Nb + f) * totDim + fieldA * Nb + g; in LandauKokkosJacobian() local 709 d_elem_mats(b_id, grid, loc_elem, fOff) = t; in LandauKokkosJacobian() 765 … const PetscInt fOff = (fieldA * Nb + f) * totDim + fieldA * Nb + g; in LandauKokkosJacobian() local 766 d_elem_mats(b_id, grid, loc_elem, fOff) = t; in LandauKokkosJacobian()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexgeometry.c | 2807 PetscInt numFaces, f, fOff = 0, p, d; in DMPlexComputeGeometryFVM_3D_Internal() local 2841 coordsTmp[0 * dim + d] = PetscRealPart(coords[faces[fOff + 0] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2842 coordsTmp[1 * dim + d] = PetscRealPart(coords[faces[fOff + 1] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2843 coordsTmp[2 * dim + d] = PetscRealPart(coords[faces[fOff + 2] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2866 coordsTmp[0 * dim + d] = PetscRealPart(coords[faces[fOff + fv[0]] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2867 coordsTmp[1 * dim + d] = PetscRealPart(coords[faces[fOff + fv[1]] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2868 coordsTmp[2 * dim + d] = PetscRealPart(coords[faces[fOff + fv[3]] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2880 coordsTmp[0 * dim + d] = PetscRealPart(coords[faces[fOff + fv[1]] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2881 coordsTmp[1 * dim + d] = PetscRealPart(coords[faces[fOff + fv[2]] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() 2882 coordsTmp[2 * dim + d] = PetscRealPart(coords[faces[fOff + fv[3]] * dim + d]) - origin[d]; in DMPlexComputeGeometryFVM_3D_Internal() [all …]
|
| H A D | plexfem.c | 1759 PetscInt qc = 0, fOff = 0, dep; in DMComputeL2FieldDiff_Plex() local 1789 fOff += Nb * 2; in DMComputeL2FieldDiff_Plex() 1796 PetscCall(DMPrintCellVector(cell, title, Nb, &x[fOff])); in DMComputeL2FieldDiff_Plex() 1822 …if (id == PETSCFE_CLASSID) PetscCall(PetscFEInterpolate_Static((PetscFE)obj, &x[fOff], &qgeom, q, … in DMComputeL2FieldDiff_Plex() 1823 …else if (id == PETSCFV_CLASSID) PetscCall(PetscFVInterpolate_Static((PetscFV)obj, &x[fOff], q, int… in DMComputeL2FieldDiff_Plex() 1833 fOff += Nb; in DMComputeL2FieldDiff_Plex()
|
| H A D | plexegads.c | 882 …s = 0, newVertices = 0, numEdges = 0, numCells = 0, newCells = 0, numQuads = 0, cOff = 0, fOff = 0; in DMPlexCreateGeom_Internal() local 1033 fOff = numVertices - newVertices + numEdges; in DMPlexCreateGeom_Internal() 1105 PetscInt v = fOff + numQuads++; in DMPlexCreateGeom_Internal()
|
| H A D | plex.c | 9585 PetscInt *closure = NULL, closureSize, cl, numCorners = 0, fOff = 0, unsplit; in DMPlexCheckFaces() local 9612 if (fclosure[v] != faces[fOff + v]) { in DMPlexCheckFaces() 9618 … < fnumCorners; ++v1) PetscCall(PetscPrintf(PETSC_COMM_SELF, " %" PetscInt_FMT, faces[fOff + v1])); in DMPlexCheckFaces() 9620 …one[f], DMPolytopeTypes[fct], f, ornt[f], c, DMPolytopeTypes[ct], v, fclosure[v], faces[fOff + v]); in DMPlexCheckFaces() 9624 fOff += faceSizes[f]; in DMPlexCheckFaces()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 2092 PetscInt fdof = 0, cfdof = 0, fc, numConst = 0, fOff = 0; in PetscSectionCreateSubsection() local 2099 for (fc = 0; fc < cfdof; ++fc) indices[numConst + fc] = oldIndices[fc] + fOff; in PetscSectionCreateSubsection() 2101 fOff += fdof; in PetscSectionCreateSubsection() 2265 PetscInt dof, numConst = 0, fOff = 0; in PetscSectionCreateSupersection() local 2280 for (fc = 0; fc < cfdof; ++fc) indices[numConst + fc] += fOff; in PetscSectionCreateSupersection() 2284 fOff += dof; in PetscSectionCreateSupersection()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | plexland.c | 451 const PetscInt fOff = i * totDim + j; in LandauFormJacobian_Internal() local 454 elemMat[fOff] += DIq[f * dim + d] * g2[fieldA][d] * BJq[g]; in LandauFormJacobian_Internal() 455 …for (d2 = 0; d2 < dim; ++d2) elemMat[fOff] += DIq[f * dim + d] * g3[fieldA][d][d2] * DIq[g * dim +… in LandauFormJacobian_Internal() 458 elemMat[fOff] += BJq[f] * g0[fieldA] * BJq[g]; in LandauFormJacobian_Internal()
|