Home
last modified time | relevance | path

Searched refs:totNc (Results 1 – 2 of 2) sorted by relevance

/petsc/src/dm/impls/swarm/
H A Dswarm.c479 PetscInt dim, Nf, Nfc, cStart, cEnd, totDim, maxC = 0, totNc = 0; in DMSwarmComputeMassMatrix_Private() local
527 totNc += Nc; in DMSwarmComputeMassMatrix_Private()
558 key.i = cindices[j] * totNc + c + rStart; /* global cols (from Swarm) */ in DMSwarmComputeMassMatrix_Private()
577 PetscCall(PetscMalloc3(maxC * totNc * totDim, &elemMat, maxC * totNc, &rowIDXs, maxC * dim, &xi)); in DMSwarmComputeMassMatrix_Private()
617 …elemMat[(j * totNc + c) * numFIndices + i * Nc + c] += Tcoarse->T[0][(j * numFIndices + i * Nc + c… in DMSwarmComputeMassMatrix_Private()
623 for (PetscInt c = 0; c < Nc; ++c) rowIDXs[j * Nc + c] = cindices[j] * totNc + c + rStart; in DMSwarmComputeMassMatrix_Private()
953 PetscInt cdim, Nf, Nfc, cStart, cEnd, totDim, maxNpc = 0, totNc = 0; in DMSwarmComputeGradientMatrix_Private() local
989 totNc += Nc; in DMSwarmComputeGradientMatrix_Private()
991 …PetscCheck(totNc == 1, comm, PETSC_ERR_ARG_WRONG, "The number of field components %" PetscInt_FMT … in DMSwarmComputeGradientMatrix_Private()
/petsc/src/dm/impls/plex/
H A Dplexfem.c1737 PetscInt qNc, Nq, totNc, cStart = 0, cEnd, c, dsNf; in DMComputeL2FieldDiff_Plex() local
1743 PetscCall(PetscDSGetTotalComponents(ds, &totNc)); in DMComputeL2FieldDiff_Plex()
1746 …!(qNc != totNc), PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Quadrature components %" PetscInt_FMT " != %… in DMComputeL2FieldDiff_Plex()
1747 …PetscCall(PetscCalloc6(totNc, &funcVal, totNc, &interpolant, dE * (Nq + 1), &coords, Nq, &fegeom.d… in DMComputeL2FieldDiff_Plex()