Home
last modified time | relevance | path

Searched refs:numComps (Results 1 – 6 of 6) sorted by relevance

/petsc/src/dm/interface/
H A Ddmi.c78 …Section gs, PetscInt numFields, const PetscInt fields[], const PetscInt numComps[], const PetscInt… in PetscSectionSelectFields_Private() argument
90 if (numComps) { in PetscSectionSelectFields_Private()
94 if (numComps[f] < 0) continue; in PetscSectionSelectFields_Private()
96numComps[f] <= Nc, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field %" PetscInt_FMT ": Number of … in PetscSectionSelectFields_Private()
97 …for (PetscInt c = 0; c < numComps[f]; ++c, ++off) PetscCheck(comps[off] < Nc, PETSC_COMM_SELF, PET… in PetscSectionSelectFields_Private()
98 bs += numComps[f]; in PetscSectionSelectFields_Private()
123 if (numComps && numComps[f] >= 0) { in PetscSectionSelectFields_Private()
128 sfdof = (fdof / Nc) * numComps[f]; in PetscSectionSelectFields_Private()
139 off += numComps[f]; in PetscSectionSelectFields_Private()
187 if (numComps && numComps[f] >= 0) { in PetscSectionSelectFields_Private()
[all …]
/petsc/src/snes/tutorials/network/power/
H A Dpffunctions.c36 PetscInt offsetfrom, offsetto, goffsetfrom, goffsetto, numComps; in FormJacobian_Power_private() local
52 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormJacobian_Power_private()
53 for (j = 0; j < numComps; j++) { in FormJacobian_Power_private()
246 PetscInt offsetfrom, offsetto, offset, i, j, key, numComps; in FormFunction_Power() local
261 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormFunction_Power()
264 for (j = 0; j < numComps; j++) { in FormFunction_Power()
357 PetscInt key, numComps, j, offset; in SetInitialGuess_Power() local
373 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[i], &numComps)); in SetInitialGuess_Power()
374 for (j = 0; j < numComps; j++) { in SetInitialGuess_Power()
H A Dpower2.c31 PetscInt numComps; in FormFunction_Subnet() local
35 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormFunction_Subnet()
37 for (j = 0; j < numComps; j++) { in FormFunction_Subnet()
177 PetscInt numComps; in FormJacobian_Subnet() local
181 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormJacobian_Subnet()
182 for (j = 0; j < numComps; j++) { in FormJacobian_Subnet()
377 PetscInt key, numComps, j, offset; in SetInitialValues_Subnet() local
387 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[i], &numComps)); in SetInitialValues_Subnet()
388 for (j = 0; j < numComps; j++) { in SetInitialValues_Subnet()
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busdmnetwork.c362 PetscInt key, numComps, j; in SetInitialGuess() local
390 PetscCall(DMNetworkGetNumComponents(networkdm, v, &numComps)); in SetInitialGuess()
391 for (j = 0; j < numComps; j++) { in SetInitialGuess()
525 PetscInt numComps; in FormIFunction() local
532 PetscCall(DMNetworkGetNumComponents(networkdm, v, &numComps)); in FormIFunction()
534 for (j = 0; j < numComps; j++) { in FormIFunction()
775 PetscInt i, j, offsetbus, offsetgen, key, numComps; in AlgFunction() local
783 PetscCall(DMNetworkGetNumComponents(networkdm, v, &numComps)); in AlgFunction()
785 for (j = 0; j < numComps; j++) { in AlgFunction()
/petsc/src/dm/impls/plex/
H A Dplexsection.c523 PetscInt bd2, field, numComps, numValues; in DMCreateLocalSection_Plex() local
527 …dary(dsBC, bd, NULL, &type, NULL, &label, &numValues, &values, &field, &numComps, &comps, NULL, NU… in DMCreateLocalSection_Plex()
543 …if (numComps) PetscCall(ISCreateGeneral(PETSC_COMM_SELF, numComps, comps, PETSC_COPY_VALUES, &bcCo… in DMCreateLocalSection_Plex()
/petsc/src/ts/tutorials/
H A Dex11.c704 static PetscErrorCode ErrorIndicator_Simple(PetscInt dim, PetscReal volume, PetscInt numComps, cons… in ErrorIndicator_Simple() argument
710 for (i = 0; i < numComps; i++) { in ErrorIndicator_Simple()