Lines Matching refs:numFaces

1076     PetscInt        numFaces, f;  in DMPlexInsertBoundaryValuesRiemann()  local
1080 PetscCall(ISGetLocalSize(faceIS, &numFaces)); in DMPlexInsertBoundaryValuesRiemann()
1082 for (f = 0; f < numFaces; ++f) { in DMPlexInsertBoundaryValuesRiemann()
2767 PetscInt numFaces, face, Nq, field; in DMPlexComputeBdIntegral_Internal() local
2770 PetscCall(ISGetLocalSize(pointIS, &numFaces)); in DMPlexComputeBdIntegral_Internal()
2772 PetscCall(PetscCalloc2(numFaces * totDim, &u, (locA ? (size_t)numFaces * totDimAux : 0), &a)); in DMPlexComputeBdIntegral_Internal()
2774 for (face = 0; face < numFaces; ++face) { in DMPlexComputeBdIntegral_Internal()
2815 numChunks = numFaces / chunkSize; in DMPlexComputeBdIntegral_Internal()
2816 Nr = numFaces % chunkSize; in DMPlexComputeBdIntegral_Internal()
2817 offset = numFaces - Nr; in DMPlexComputeBdIntegral_Internal()
2825 PetscCall(PetscFEGeomGetChunk(fgeom, offset, numFaces, &chunkGeom)); in DMPlexComputeBdIntegral_Internal()
2827 PetscCall(PetscFEGeomRestoreChunk(fgeom, offset, numFaces, &chunkGeom)); in DMPlexComputeBdIntegral_Internal()
2888 PetscInt numFaces, face; in DMPlexComputeBdIntegral() local
2901 PetscCall(ISGetLocalSize(pointIS, &numFaces)); in DMPlexComputeBdIntegral()
2902 PetscCall(PetscCalloc1(numFaces * Nf, &fintegral)); in DMPlexComputeBdIntegral()
2906 for (face = 0; face < numFaces; ++face) integral[f] += fintegral[face * Nf + f]; in DMPlexComputeBdIntegral()
4098 PetscInt dim, Nf, f, Nc, numFaces = fEnd - fStart, iface, face; in DMPlexGetFaceFields() local
4139 PetscCall(DMGetWorkArray(dm, numFaces * Nc, MPIU_SCALAR, uL)); in DMPlexGetFaceFields()
4140 PetscCall(DMGetWorkArray(dm, numFaces * Nc, MPIU_SCALAR, uR)); in DMPlexGetFaceFields()
4286 PetscInt dim, numFaces = fEnd - fStart, iface, face; in DMPlexGetFaceGeometry() local
4300 PetscCall(PetscMalloc1(numFaces, fgeom)); in DMPlexGetFaceGeometry()
4301 PetscCall(DMGetWorkArray(dm, numFaces * 2, MPIU_SCALAR, vol)); in DMPlexGetFaceGeometry()
4481 PetscInt numFaces = 0; in DMPlexComputeResidual_Patch_Internal() local
4530 Ne = numFaces; in DMPlexComputeResidual_Patch_Internal()
4952 PetscInt numFaces, face, Nq; in DMPlexComputeBdResidualSingleByKey() local
4964 PetscCall(ISGetLocalSize(pointIS, &numFaces)); in DMPlexComputeBdResidualSingleByKey()
4966 …(PetscMalloc4(numFaces * totDim, &u, (locX_t ? (size_t)numFaces * totDim : 0), &u_t, numFaces * to… in DMPlexComputeBdResidualSingleByKey()
4978 for (face = 0; face < numFaces; ++face) { in DMPlexComputeBdResidualSingleByKey()
5001 PetscCall(PetscArrayzero(elemVec, numFaces * totDim)); in DMPlexComputeBdResidualSingleByKey()
5018 numChunks = numFaces / (numBatches * batchSize); in DMPlexComputeBdResidualSingleByKey()
5020 Nr = numFaces % (numBatches * batchSize); in DMPlexComputeBdResidualSingleByKey()
5021 offset = numFaces - Nr; in DMPlexComputeBdResidualSingleByKey()
5025 PetscCall(PetscFEGeomGetChunk(fgeom, offset, numFaces, &chunkGeom)); in DMPlexComputeBdResidualSingleByKey()
5027 PetscCall(PetscFEGeomRestoreChunk(fgeom, offset, numFaces, &chunkGeom)); in DMPlexComputeBdResidualSingleByKey()
5029 for (face = 0; face < numFaces; ++face) { in DMPlexComputeBdResidualSingleByKey()
5284 … fS = fStart + chunk * faceChunkSize, fE = PetscMin(fS + faceChunkSize, fEnd), numFaces = 0, face; in DMPlexComputeResidualByKey() local
5294 …eFields(dm, fS, fE, locX, locX_t, faceGeometryFVM, cellGeometryFVM, locGrad, &numFaces, &uL, &uR)); in DMPlexComputeResidualByKey()
5295 …PetscCall(DMPlexGetFaceGeometry(dm, fS, fE, faceGeometryFVM, cellGeometryFVM, &numFaces, &fgeom, &… in DMPlexComputeResidualByKey()
5296 PetscCall(DMGetWorkArray(dm, numFaces * totDim, MPIU_SCALAR, &fluxL)); in DMPlexComputeResidualByKey()
5297 PetscCall(DMGetWorkArray(dm, numFaces * totDim, MPIU_SCALAR, &fluxR)); in DMPlexComputeResidualByKey()
5298 PetscCall(PetscArrayzero(fluxL, numFaces * totDim)); in DMPlexComputeResidualByKey()
5299 PetscCall(PetscArrayzero(fluxR, numFaces * totDim)); in DMPlexComputeResidualByKey()
5341 Ne = numFaces; in DMPlexComputeResidualByKey()
5453 …eFields(dm, fS, fE, locX, locX_t, faceGeometryFVM, cellGeometryFVM, locGrad, &numFaces, &uL, &uR)); in DMPlexComputeResidualByKey()
5454 …PetscCall(DMPlexRestoreFaceGeometry(dm, fS, fE, faceGeometryFVM, cellGeometryFVM, &numFaces, &fgeo… in DMPlexComputeResidualByKey()
5455 PetscCall(DMRestoreWorkArray(dm, numFaces * totDim, MPIU_SCALAR, &fluxL)); in DMPlexComputeResidualByKey()
5456 PetscCall(DMRestoreWorkArray(dm, numFaces * totDim, MPIU_SCALAR, &fluxR)); in DMPlexComputeResidualByKey()
5952 PetscInt numFaces, face, Nq; in DMPlexComputeBdJacobianSingleByLabel() local
5967 PetscCall(ISGetLocalSize(pointIS, &numFaces)); in DMPlexComputeBdJacobianSingleByLabel()
5969numFaces * totDim, &u, (locX_t ? (size_t)numFaces * totDim : 0), &u_t, (hasJac ? (size_t)numFaces in DMPlexComputeBdJacobianSingleByLabel()
5981 for (face = 0; face < numFaces; ++face) { in DMPlexComputeBdJacobianSingleByLabel()
6003 if (elemMat) PetscCall(PetscArrayzero(elemMat, numFaces * totDim * totDim)); in DMPlexComputeBdJacobianSingleByLabel()
6004 if (elemMatP) PetscCall(PetscArrayzero(elemMatP, numFaces * totDim * totDim)); in DMPlexComputeBdJacobianSingleByLabel()
6020 numChunks = numFaces / (numBatches * batchSize); in DMPlexComputeBdJacobianSingleByLabel()
6022 Nr = numFaces % (numBatches * batchSize); in DMPlexComputeBdJacobianSingleByLabel()
6023 offset = numFaces - Nr; in DMPlexComputeBdJacobianSingleByLabel()
6030 PetscCall(PetscFEGeomGetChunk(fgeom, offset, numFaces, &chunkGeom)); in DMPlexComputeBdJacobianSingleByLabel()
6038 PetscCall(PetscFEGeomRestoreChunk(fgeom, offset, numFaces, &chunkGeom)); in DMPlexComputeBdJacobianSingleByLabel()
6040 for (face = 0; face < numFaces; ++face) { in DMPlexComputeBdJacobianSingleByLabel()