Home
last modified time | relevance | path

Searched refs:Nd (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex35.c8 PetscInt cdim, depth, d, pStart, pEnd, p, Nd[4] = {0, 0, 0, 0}, lsize = 0, rmem = 0, imem = 0; in EstimateMemory() local
20 Nd[d] = end - start; in EstimateMemory()
23 rmem += cdim * Nd[0]; in EstimateMemory()
24 imem += 2 * Nd[0] + 2 * Nd[0]; in EstimateMemory()
25 …etscInt_FMT " %" PetscInt_FMT "\n", (PetscInt)(cdim * Nd[0] * sizeof(PetscReal)), (PetscInt)(4 * N… in EstimateMemory()
27 for (d = 0; d <= depth; ++d) labelMem += Nd[d]; in EstimateMemory()
29 for (d = 0; d <= depth; ++d) labelMem += Nd[d]; in EstimateMemory()
37 for (d = 0; d <= depth; ++d) coneSecMem += 2 * Nd[d]; in EstimateMemory()
47 for (d = 0; d <= depth; ++d) supportSecMem += 2 * Nd[d]; in EstimateMemory()
/petsc/src/dm/impls/plex/adaptors/pragmatic/
H A Dpragmaticadapt.c23 PetscInt off, maxConeSize, numBdFaces, f, bdSize, i, j, Nd; in DMAdaptMetric_Pragmatic_Plex() local
139 Nd = PetscSqr(dim); in DMAdaptMetric_Pragmatic_Plex()
145 if (uniform) metric[Nd * v + dim * i + j] = PetscRealPart(met[0]); in DMAdaptMetric_Pragmatic_Plex()
146 else metric[Nd * v + dim * i + j] = PetscRealPart(met[v]); in DMAdaptMetric_Pragmatic_Plex()
147 } else metric[Nd * v + dim * i + j] = 0.0; in DMAdaptMetric_Pragmatic_Plex()
148 } else metric[Nd * v + dim * i + j] = PetscRealPart(met[Nd * v + dim * i + j]); in DMAdaptMetric_Pragmatic_Plex()
/petsc/src/dm/impls/plex/
H A Dplexmetric.c904 PetscInt coordDim, Nd; in DMPlexMetricCreate() local
908 Nd = coordDim * coordDim; in DMPlexMetricCreate()
920 else PetscCall(DMPlexP1FieldCreate_Private(dm, f, Nd, metric)); in DMPlexMetricCreate()
1266 PetscInt dim, Nd, vStart, vEnd, v, i; in DMPlexMetricNormalize() local
1278 if (isotropic) Nd = 1; in DMPlexMetricNormalize()
1279 else Nd = dim * dim; in DMPlexMetricNormalize()
1348 for (i = 0; i < Nd; ++i) Mp[i] *= fact; in DMPlexMetricNormalize()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c1443 PetscInt Nd = coordDim * coordDim, f, vStart, vEnd; in DMAdaptorAdapt_Sequence_Private() local
1475 …PetscCall(PetscFECreateDefault(PetscObjectComm((PetscObject)dmHess), dim, Nc * Nd, PETSC_TRUE, pre… in DMAdaptorAdapt_Sequence_Private()