Home
last modified time | relevance | path

Searched refs:numComponents (Results 1 – 18 of 18) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex10.c9 PetscInt *numComponents; /* The number of field components */ member
21 options->numComponents = NULL; in ProcessOptions()
29 PetscCall(PetscCalloc1(len, &options->numComponents)); in ProcessOptions()
30 …_components", "The number of components per field", "ex10.c", options->numComponents, &len, &flg)); in ProcessOptions()
41 PetscCall(PetscFree(user->numComponents)); in CleanupContext()
168 …PetscCall(DMPlexCreateSection(dm, NULL, user.numComponents, user.numDof, 0, NULL, NULL, NULL, NULL… in main()
175 …PetscCall(DMPlexCreateSection(dm, NULL, user.numComponents, user.numDof, 0, NULL, NULL, NULL, NULL… in main()
H A Dex9.c12 PetscInt *numComponents; /* The number of field components */ member
36 options->numComponents = NULL; in ProcessOptions()
55 PetscCall(PetscMalloc1(len, &options->numComponents)); in ProcessOptions()
56 …m_components", "The number of components per field", "ex9.c", options->numComponents, &len, &flg)); in ProcessOptions()
69 …; d <= options->dim; ++d) options->numDof[f * (options->dim + 1) + d] *= options->numComponents[f]; in ProcessOptions()
343 …PetscCall(DMPlexCreateSection(dm, NULL, user->numComponents, user->numDof, 0, NULL, NULL, NULL, NU… in TestVecClosure()
390 PetscCall(PetscFree(user->numComponents)); in CleanupContext()
H A Dex3.c19 PetscInt numComponents; /* Number of field components */ member
199 options->numComponents = PETSC_DEFAULT; in ProcessOptions()
219 …mp", "The number of field components", "ex3.c", options->numComponents, &options->numComponents, N… in ProcessOptions()
534numComponents == dim, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "The number of c… in TestFEJacobian()
620 PetscCall(PetscFVSetNumComponents(fv, user->numComponents)); in TestFVGrad()
962 user.numComponents = user.numComponents < 0 ? dim : user.numComponents; in main()
963 …PetscCall(PetscFECreateDefault(PETSC_COMM_WORLD, dim, user.numComponents, simplex, NULL, user.qord… in main()
/petsc/src/snes/tutorials/network/power/
H A Dpower.c169 PetscInt key,kk,numComponents; in main()
176 PetscCall(DMNetworkGetNumComponents(networkdm,i,&numComponents)); in main()
177 …cPrintf(PETSC_COMM_SELF,"Rank %d ncomps = %d Line %d ---- %d\n",crank,numComponents,edge->internal… in main()
181 PetscCall(DMNetworkGetNumComponents(networkdm,i,&numComponents)); in main()
182 for (kk=0; kk < numComponents; kk++) { in main()
186 …PetscCall(PetscPrintf(PETSC_COMM_SELF,"Rank %d ncomps = %d Bus %d\n",crank,numComponents,bus->inte… in main()
/petsc/src/dm/field/interface/
H A Ddmfield.c7 PETSC_INTERN PetscErrorCode DMFieldCreate(DM dm, PetscInt numComponents, DMFieldContinuity continui… in DMFieldCreate() argument
20 b->numComponents = numComponents; in DMFieldCreate()
78 … PetscCall(PetscViewerASCIIPrintf(viewer, "%" PetscInt_FMT " components\n", field->numComponents)); in DMFieldView()
177 *nc = field->numComponents; in DMFieldGetNumComponents()
452 dE = field->numComponents; in DMFieldCreateFEGeom()
/petsc/src/dm/impls/swarm/tests/
H A Dex2.c450 …PetscInt dim, coordDim, numFields, numComponents = 0, qNc, Nq, cStart, cEnd, vStart, vEnd,… in InterpolateGradient() local
478 numComponents += Nc; in InterpolateGradient()
481numComponents), PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_SIZ, "Quadrature components %" Pet… in InterpolateGradient()
482 …PetscCall(PetscMalloc6(coordDim * numComponents * 2, &gradsum, coordDim * numComponents, &interpol… in InterpolateGradient()
489 PetscCall(PetscArrayzero(gradsum, coordDim * numComponents)); in InterpolateGradient()
493 PetscScalar *grad = &gradsum[coordDim * numComponents]; in InterpolateGradient()
504 PetscCall(PetscArrayzero(grad, coordDim * numComponents)); in InterpolateGradient()
527 for (fc = 0; fc < numComponents; ++fc) { in InterpolateGradient()
532 for (fc = 0; fc < numComponents; ++fc) { in InterpolateGradient()
/petsc/src/ts/characteristic/interface/
H A Dcharacteristic.c251 …ocityInterpolation(Characteristic c, DM da, Vec v, Vec vOld, PetscInt numComponents, PetscInt comp… in CharacteristicSetVelocityInterpolation() argument
257 c->numVelocityComp = numComponents; in CharacteristicSetVelocityInterpolation()
264 …InterpolationLocal(Characteristic c, DM da, Vec v, Vec vOld, PetscInt numComponents, PetscInt comp… in CharacteristicSetVelocityInterpolationLocal() argument
270 c->numVelocityComp = numComponents; in CharacteristicSetVelocityInterpolationLocal()
277 …eristicSetFieldInterpolation(Characteristic c, DM da, Vec v, PetscInt numComponents, PetscInt comp… in CharacteristicSetFieldInterpolation() argument
281 …PetscCheck(numComponents <= 2,PETSC_COMM_SELF,PETSC_ERR_SUP, "Fields with more than 2 components a… in CharacteristicSetFieldInterpolation()
285 c->numFieldComp = numComponents; in CharacteristicSetFieldInterpolation()
292 …icSetFieldInterpolationLocal(Characteristic c, DM da, Vec v, PetscInt numComponents, PetscInt comp… in CharacteristicSetFieldInterpolationLocal() argument
296 …PetscCheck(numComponents <= 2,PETSC_COMM_SELF,PETSC_ERR_SUP, "Fields with more than 2 components a… in CharacteristicSetFieldInterpolationLocal()
300 c->numFieldComp = numComponents; in CharacteristicSetFieldInterpolationLocal()
/petsc/include/petsc/private/
H A Ddmfieldimpl.h28 PetscInt numComponents; member
H A Dpetscfvimpl.h76 PetscInt numComponents; /* The number of field components */ member
H A Dpetscfeimpl.h228 PetscInt numComponents; /* The number of field components */ member
/petsc/src/dm/field/impls/shell/
H A Ddmfieldshell.c41 Nc = field->numComponents; in DMFieldShellEvaluateFEDefault()
251 PetscErrorCode DMFieldCreateShell(DM dm, PetscInt numComponents, DMFieldContinuity continuity, Pets… in DMFieldCreateShell() argument
260 PetscCall(DMFieldCreate(dm, numComponents, continuity, &b)); in DMFieldCreateShell()
/petsc/src/dm/impls/plex/
H A Dplexorient.c351 PetscMPIInt rank, size, numComponents, comp = 0; in DMPlexOrient() local
437 numComponents = comp; in DMPlexOrient()
493 PetscCall(PetscMalloc2(numComponents, &numNeighbors, numComponents, &neighbors)); in DMPlexOrient()
497 for (comp = 0; comp < numComponents; ++comp) { in DMPlexOrient()
531 for (comp = 0, off = 0; comp < numComponents; ++comp) { in DMPlexOrient()
557 PetscCall(PetscCalloc1(numComponents, &flipped)); in DMPlexOrient()
560 PetscCallMPI(MPI_Gather(&numComponents, 1, MPI_INT, Nc, 1, MPI_INT, 0, comm)); in DMPlexOrient()
563 …PetscCallMPI(MPI_Gatherv(numNeighbors, numComponents, MPIU_INT, N, Nc, displs, MPIU_INT, 0, comm)); in DMPlexOrient()
663 …PetscCallMPI(MPI_Scatterv(flips, Nc, displs, MPI_C_BOOL, flipped, numComponents, MPI_C_BOOL, 0, co… in DMPlexOrient()
H A Dplexfem.c1469 …PetscInt dim, coordDim, numFields, numComponents = 0, qNc, Nq, cellHeight, cStart, cEnd, c… in DMPlexComputeL2DiffLocal() local
1500 numComponents += Nc; in DMPlexComputeL2DiffLocal()
1503numComponents), PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_SIZ, "Quadrature components %" Pet… in DMPlexComputeL2DiffLocal()
1504 …PetscCall(PetscMalloc6(numComponents, &funcVal, numComponents, &interpolant, coordDim * (Nq + 1), … in DMPlexComputeL2DiffLocal()
1594 …PetscInt dim, coordDim, qNc = 0, Nq = 0, numFields, numComponents = 0, cStart, cEnd, c, fi… in DMComputeL2GradientDiff_Plex() local
1616 numComponents += Nc; in DMComputeL2GradientDiff_Plex()
1619numComponents), PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_SIZ, "Quadrature components %" Pet… in DMComputeL2GradientDiff_Plex()
1621 …oc6(numComponents, &funcVal, coordDim * (Nq + 1), &coords, coordDim * coordDim * Nq, &fegeom.J, co… in DMComputeL2GradientDiff_Plex()
1882 …PetscInt dim, coordDim, numFields, numComponents = 0, qNc, Nq, cStart, cEnd, c, field, fie… in DMPlexComputeL2DiffVec() local
1912 numComponents += Nc; in DMPlexComputeL2DiffVec()
[all …]
/petsc/src/dm/field/impls/da/
H A Ddmfieldda.c38 nc = field->numComponents; in DMFieldView_DA()
190 nc = field->numComponents; in DMFieldEvaluate_DA()
231 nc = field->numComponents; in DMFieldEvaluateFE_DA()
319 nc = field->numComponents; in DMFieldEvaluateFV_DA()
/petsc/src/dm/field/impls/ds/
H A Ddmfieldds.c162 nc = field->numComponents; in DMFieldEvaluateFE_DS()
250 nc = field->numComponents; in DMFieldEvaluate_DS()
467 Nc = field->numComponents; in DMFieldEvaluateFV_DS()
1165 PetscInt numComponents = -1, dsNumFields; in DMFieldCreateDSWithDG() local
1169 PetscCall(PetscSectionGetFieldComponents(section, fieldNum, &numComponents)); in DMFieldCreateDSWithDG()
1191 …PetscCall(PetscFECreateLagrangeByCell(PETSC_COMM_SELF, dim, numComponents, ct, 1, PETSC_DETERMINE,… in DMFieldCreateDSWithDG()
1197 PetscCall(PetscFEGetNumComponents((PetscFE)disc, &numComponents)); in DMFieldCreateDSWithDG()
1198 PetscCall(DMFieldCreate(dm, numComponents, DMFIELD_VERTEX, &b)); in DMFieldCreateDSWithDG()
/petsc/src/dm/dt/fv/interface/
H A Dfv.c1128 for (i = 0; i < (*fvm)->numComponents; i++) PetscCall(PetscFree((*fvm)->componentNames[i])); in PetscFVDestroy()
1167 f->numComponents = 1; in PetscFVCreate()
1171 PetscCall(PetscCalloc1(f->numComponents, &f->componentNames)); in PetscFVCreate()
1242 if (fvm->numComponents != comp) { in PetscFVSetNumComponents()
1245 for (i = 0; i < fvm->numComponents; i++) PetscCall(PetscFree(fvm->componentNames[i])); in PetscFVSetNumComponents()
1249 fvm->numComponents = comp; in PetscFVSetNumComponents()
1275 *comp = fvm->numComponents; in PetscFVGetNumComponents()
/petsc/src/dm/dt/fe/interface/
H A Dfe.c357 f->numComponents = 1; in PetscFECreate()
418 fem->numComponents = comp; in PetscFESetNumComponents()
442 *comp = fem->numComponents; in PetscFEGetNumComponents()
1224 PetscCall(PetscDualSpacePushforward(fe->dualSpace, fegeom, Nv, fe->numComponents, vals)); in PetscFEPushforward()
1252 PetscCall(PetscDualSpacePushforwardGradient(fe->dualSpace, fegeom, Nv, fe->numComponents, vals)); in PetscFEPushforwardGradient()
1283 PetscCall(PetscDualSpacePushforwardHessian(fe->dualSpace, fegeom, Nv, fe->numComponents, vals)); in PetscFEPushforwardHessian()
/petsc/src/vec/is/section/interface/
H A Dsection.c1481 PetscInt numFields, f, numComponents; in PetscSectionCreateGlobalSection() local
1563 PetscCall(PetscSectionGetFieldComponents(s, f, &numComponents)); in PetscSectionCreateGlobalSection()
1564 PetscCall(PetscSectionSetFieldComponents(gs, f, numComponents)); in PetscSectionCreateGlobalSection()