Home
last modified time | relevance | path

Searched refs:dimEmbed (Results 1 – 20 of 20) sorted by relevance

/petsc/src/dm/dt/fe/interface/
H A Dfegeom.c19 PetscErrorCode PetscFEGeomCreate(PetscQuadrature quad, PetscInt numCells, PetscInt dimEmbed, PetscF… in PetscFEGeomCreate() argument
33 g->dimEmbed = dimEmbed; in PetscFEGeomCreate()
35 PetscCall(PetscCalloc3(N * dimEmbed, &g->v, N * dimEmbed * dimEmbed, &g->J, N, &g->detJ)); in PetscFEGeomCreate()
37 PetscCall(PetscCalloc2(numCells, &g->face, N * dimEmbed, &g->n)); in PetscFEGeomCreate()
38 …c6(N * dimEmbed * dimEmbed, &g->suppJ[0], N * dimEmbed * dimEmbed, &g->suppJ[1], N * dimEmbed * di… in PetscFEGeomCreate()
40 PetscCall(PetscCalloc1(N * dimEmbed * dimEmbed, &g->invJ)); in PetscFEGeomCreate()
95 dE = geom->dimEmbed; in PetscFEGeomGetChunk()
98 (*chunkGeom)->dimEmbed = geom->dimEmbed; in PetscFEGeomGetChunk()
163 const PetscInt dE = geom->dimEmbed; in PetscFEGeomGetPoint()
169 pgeom->dimEmbed = dE; in PetscFEGeomGetPoint()
[all …]
H A Dfe.c2367 const PetscInt dE = fegeom->dimEmbed; in PetscFEEvaluateFieldJets_Internal()
2434 const PetscInt dE = fegeom->dimEmbed; in PetscFEEvaluateFieldJets_Hybrid_Internal()
2505 const PetscInt dE = fegeom->dimEmbed; in PetscFEUpdateElementVec_Internal()
2648 const PetscInt dE = fegeom->dimEmbed; in PetscFEUpdateElementMat_Internal()
2881 cgeom->dimEmbed = cdim; in PetscFECreateCellGeometry()
2899 …Internal_SparseIndices(PetscTabulation TI, PetscTabulation TJ, PetscInt dimEmbed, const PetscInt g…
2901 const PetscInt dE = dimEmbed;
/petsc/src/dm/impls/plex/
H A Dplexvtu.c175 …PetscInt dimEmbed, cellHeight, cStart, cEnd, vStart, vEnd, numLabelCells, hasLabel… in DMPlexVTKWriteAll_VTU() local
183 PetscCall(DMGetCoordinateDim(dm, &dimEmbed)); in DMPlexVTKWriteAll_VTU()
230 piece.nvertices += dof / dimEmbed; in DMPlexVTKWriteAll_VTU()
231 piece.nconn += dof / dimEmbed; in DMPlexVTKWriteAll_VTU()
450 …const PetscBool copy = PetscDefined(USE_COMPLEX) ? PETSC_TRUE : (PetscBool)(dimEmbed != 3 || lo… in DMPlexVTKWriteAll_VTU()
472 if (dimEmbed != 3) { in DMPlexVTKWriteAll_VTU()
474 … y[cnt * 3 + 1] = (PetscVTUReal)((dimEmbed > 1) ? PetscRealPart(x[off + 1]) : 0.0); in DMPlexVTKWriteAll_VTU()
487 if (dimEmbed != 3) { in DMPlexVTKWriteAll_VTU()
488 for (i = 0; i < dof / dimEmbed; i++) { in DMPlexVTKWriteAll_VTU()
489 y[cnt * 3 + 0] = (PetscVTUReal)PetscRealPart(cx[off + i * dimEmbed + 0]); in DMPlexVTKWriteAll_VTU()
[all …]
H A Dplexproject.c208 const PetscInt dE = cgeom->dimEmbed, *cone, *ornt; in DMProjectPoint_Field_Private()
266 fegeom.dimEmbed = cgeom->dimEmbed; in DMProjectPoint_Field_Private()
269 fgeomN[0].dimEmbed = cgeom->dimEmbed; in DMProjectPoint_Field_Private()
271 fgeomN[1].dimEmbed = cgeom->dimEmbed; in DMProjectPoint_Field_Private()
367 const PetscInt dE = fgeom->dimEmbed, *cone, *ornt; in DMProjectPoint_BdField_Private()
425 fegeom.dimEmbed = fgeom->dimEmbed; in DMProjectPoint_BdField_Private()
431 cgeom.dimEmbed = fgeom->dimEmbed; in DMProjectPoint_BdField_Private()
434 fgeomN[0].dimEmbed = fgeom->dimEmbed; in DMProjectPoint_BdField_Private()
436 fgeomN[1].dimEmbed = fgeom->dimEmbed; in DMProjectPoint_BdField_Private()
536 PetscInt dim, dimEmbed; in DMProjectPoint_Private() local
[all …]
H A Dplexfem.c304 PetscInt dim, dimEmbed, Nf, n, m, mmin, d, i, j; in DMPlexCreateRigidBody() local
310 PetscCall(DMGetCoordinateDim(dm, &dimEmbed)); in DMPlexCreateRigidBody()
334 ctx[0] = dimEmbed; in DMPlexCreateRigidBody()
395 PetscInt dim, dimEmbed, n, m, b, d, i, j, off; in DMPlexCreateRigidBodies() local
400 PetscCall(DMGetCoordinateDim(dm, &dimEmbed)); in DMPlexCreateRigidBodies()
416 ctx[0] = dimEmbed; in DMPlexCreateRigidBodies()
1475 fegeom.dimEmbed = coordDim; in DMPlexComputeL2DiffLocal()
1539 qgeom.dimEmbed = fegeom.dimEmbed; in DMPlexComputeL2DiffLocal()
1600 fegeom.dimEmbed = coordDim; in DMComputeL2GradientDiff_Plex()
1648 qgeom.dimEmbed = fegeom.dimEmbed; in DMComputeL2GradientDiff_Plex()
[all …]
H A Dplexcreate.c6632 PetscInt coordSize, firstVertex = -1, pStart = 0, pEnd = 0, p, v, dim, dimEmbed, d, off; in DMPlexCreateFromDAG() local
6636 PetscCall(DMGetCoordinateDim(dm, &dimEmbed)); in DMPlexCreateFromDAG()
6637dimEmbed >= dim, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Embedding dimension %" PetscInt_FMT " cannot be… in DMPlexCreateFromDAG()
6655 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, dimEmbed)); in DMPlexCreateFromDAG()
6658 PetscCall(PetscSectionSetDof(coordSection, v, dimEmbed)); in DMPlexCreateFromDAG()
6659 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, dimEmbed)); in DMPlexCreateFromDAG()
6666 PetscCall(VecSetBlockSize(coordinates, PetscMax(dimEmbed, 1))); in DMPlexCreateFromDAG()
6674 for (d = 0; d < dimEmbed; ++d) coords[off + d] = vertexCoords[v * dimEmbed + d]; in DMPlexCreateFromDAG()
/petsc/src/dm/dt/interface/
H A Ddtds.c366 PetscInt dim, dimEmbed, NbMax = 0, NcMax = 0, NqMax = 0, NsMax = 1, f; in PetscDSSetUp() local
373 PetscCall(PetscDSGetCoordinateDimension(prob, &dimEmbed)); in PetscDSSetUp()
498 …prob->offDerCohesive[0][f + 1] = (prob->cohesive[f] ? Nc : Nc * 2) * dimEmbed + prob->offDerCohesi… in PetscDSSetUp()
500 …prob->offDerCohesive[1][f] = (prob->cohesive[f] ? 0 : Nc) * dimEmbed + prob->offDerCohesive[0]… in PetscDSSetUp()
502 …prob->offDerCohesive[2][f + 1] = (prob->cohesive[f] ? Nc : Nc * 2) * dimEmbed + prob->offDerCohesi… in PetscDSSetUp()
516 …totComp, &prob->u_t, NsMax * prob->totComp * dimEmbed + (hasH ? NsMax * prob->totComp * dimEmbed *… in PetscDSSetUp()
517dimEmbed, &prob->x, NbMax * NcMax, &prob->basisReal, NbMax * NcMax * dimEmbed, &prob->basisDerReal… in PetscDSSetUp()
518dimEmbed, &prob->f1, NsMax * NsMax * NqMax * NcMax * NcMax, &prob->g0, NsMax * NsMax * NqMax * NcM… in PetscDSSetUp()
519 … &prob->g2, NsMax * NsMax * NqMax * NcMax * NcMax * dimEmbed * dimEmbed, &prob->g3)); in PetscDSSetUp()
693 p->dimEmbed = -1; in PetscDSCreate()
[all …]
/petsc/src/dm/impls/plex/exodusii/
H A Dplexexodusii2.c1675 int dim = 0, dimEmbed = 0, numVertices = 0, numCells = 0; in DMPlexCreateExodus() local
1686 …PetscCallExternal(ex_get_init, exoid, title, &dimEmbed, &numVertices, &numCells, &num_cs, &num_vs,… in DMPlexCreateExodus()
1770 PetscInt ints[] = {dim, dimEmbed}; in DMPlexCreateExodus()
1776 dimEmbed = ints[1]; in DMPlexCreateExodus()
1813 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, dimEmbed)); in DMPlexCreateExodus()
1816 PetscCall(PetscSectionSetDof(coordSection, v, dimEmbed)); in DMPlexCreateExodus()
1817 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, dimEmbed)); in DMPlexCreateExodus()
1824 PetscCall(VecSetBlockSize(coordinates, dimEmbed)); in DMPlexCreateExodus()
1832 if (dimEmbed > 0) { in DMPlexCreateExodus()
1833 for (v = 0; v < numVertices; ++v) coords[v * dimEmbed + 0] = x[v]; in DMPlexCreateExodus()
[all …]
/petsc/src/dm/dt/fe/impls/basic/
H A Dfebasic.c206 dE = cgeom->dimEmbed; in PetscFEIntegrate_Basic()
212 fegeom.dimEmbed = cgeom->dimEmbed; in PetscFEIntegrate_Basic()
301 dE = fgeom->dimEmbed; in PetscFEIntegrateBd_Basic()
313 fegeom.dimEmbed = fgeom->dimEmbed; in PetscFEIntegrateBd_Basic()
315 cgeom.dimEmbed = fgeom->dimEmbed; in PetscFEIntegrateBd_Basic()
437 dE = cgeom->dimEmbed; in PetscFEIntegrateResidual_Basic()
547 dE = fgeom->dimEmbed; in PetscFEIntegrateBdResidual_Basic()
673 dE = fgeom->dimEmbed; in PetscFEIntegrateHybridResidual_Basic()
818 dE = cgeom->dimEmbed; in PetscFEIntegrateJacobian_Basic()
827 fegeom.dimEmbed = cgeom->dimEmbed; in PetscFEIntegrateJacobian_Basic()
[all …]
/petsc/include/petsc/private/
H A Dpetscfeimpl.h347 …geom->dimEmbed, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Geometry dim %" PetscInt_FMT " must match … in PetscFEInterpolateGradient_Static()
413 …geom->dimEmbed, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Geometry dim %" PetscInt_FMT " must match … in PetscFEInterpolateFieldAndGradient_Static()
H A Dpetscdsimpl.h94 PetscInt dimEmbed; /* The real space coordinate dimension */ member
/petsc/src/dm/dt/dualspace/interface/
H A Ddualspace.c1158 dE = cgeom->dimEmbed; in PetscDualSpaceApplyDefault()
1570 PetscInt dimEmbed, qNc, c, Nq, q; in PetscDualSpaceApplyFVM() local
1576 PetscCall(DMGetCoordinateDim(dm, &dimEmbed)); in PetscDualSpaceApplyFVM()
1583 PetscCall((*func)(dimEmbed, time, cgeom->centroid, Nc, val, ctx)); in PetscDualSpaceApplyFVM()
1942 const PetscInt dim = dsp->dm->dim, dE = fegeom->dimEmbed; in PetscDualSpaceTransformGradient()
2075 const PetscInt dim = dsp->dm->dim, dE = fegeom->dimEmbed; in PetscDualSpaceTransformHessian()
/petsc/src/dm/impls/forest/
H A Dforest.c294 PetscInt dim, dimEmbed; in DMForestSetBaseDM() local
308 PetscCall(DMGetCoordinateDim(base, &dimEmbed)); in DMForestSetBaseDM()
309 PetscCall(DMSetCoordinateDim(dm, dimEmbed)); in DMForestSetBaseDM()
/petsc/src/ts/tutorials/
H A Dex11.c1352 PetscInt dimEmbed, i; in main() local
1358 PetscCall(DMGetCoordinateDim(dm, &dimEmbed)); in main()
1360 …PetscCheck(!(nCoords % dimEmbed), PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Coordinate vector the wrong… in main()
1362 for (i = 0; i < nCoords; i += dimEmbed) { in main()
1366 for (j = 0; j < dimEmbed; j++) { in main()
/petsc/include/
H A Dpetscfe.h42 PetscInt dimEmbed; // dE: real coordinate dimension member
/petsc/src/dm/field/impls/ds/
H A Ddmfieldds.c797 dE = geom->dimEmbed; in DMFieldComputeFaceData_DS()
829 PetscInt Np = geom->numPoints, q, dE = geom->dimEmbed, d; in DMFieldComputeFaceData_DS()
/petsc/src/dm/impls/swarm/tests/
H A Dex2.c457 fegeom.dimEmbed = coordDim; in InterpolateGradient()
/petsc/src/dm/impls/swarm/
H A Dswarmpic.c1331 fegeom.dimEmbed = dE; in DMProjectFieldLocal_Swarm()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c907 fegeom.dimEmbed = cdim; in DMAdaptorComputeErrorIndicator_Gradient()
/petsc/src/dm/interface/
H A Ddm.c6466 if (ds->dimEmbed < 0) PetscCall(PetscDSSetCoordinateDimension(ds, dim)); in DMSetDimension()