Home
last modified time | relevance | path

Searched refs:nC (Results 1 – 5 of 5) sorted by relevance

/petsc/src/dm/impls/da/
H A Ddalocal.c88 const PetscInt nC = (mx) * (dim > 1 ? (my) * (dim > 2 ? (mz) : 1) : 1); in DMDAGetNumCells() local
106 *numCells = nC; in DMDAGetNumCells()
237 PetscInt nC, nV, nXF, nYF, nZF; in DMDAGetHeightStratum() local
242 PetscCall(DMDAGetNumCells(dm, NULL, NULL, NULL, &nC)); in DMDAGetHeightStratum()
248 if (pEnd) *pEnd = nC; in DMDAGetHeightStratum()
251 if (pStart) *pStart = nC + nV; in DMDAGetHeightStratum()
252 if (pEnd) *pEnd = nC + nV + nXF + nYF + nZF; in DMDAGetHeightStratum()
255 if (pStart) *pStart = nC; in DMDAGetHeightStratum()
256 if (pEnd) *pEnd = nC + nV; in DMDAGetHeightStratum()
260 if (pEnd) *pEnd = nC + nV + nXF + nYF + nZF; in DMDAGetHeightStratum()
[all …]
/petsc/src/ts/tutorials/
H A Dex52.c149 PetscInt cell, cStart, cEnd, nC; in FormFunction() local
223 PetscCall(DMPlexGetSupportSize(da, cellcone[0], &nC)); in FormFunction()
225 if (nC == 2) flux_south = (x[cellsupport[0]] * (-v_plus - user->diffusion * delta_x)) / delta_y; in FormFunction()
229 PetscCall(DMPlexGetSupportSize(da, cellcone[1], &nC)); in FormFunction()
231 if (nC == 2) flux_east = (x[cellsupport[1]] * (u_minus - user->diffusion * delta_y)) / delta_x; in FormFunction()
235 PetscCall(DMPlexGetSupportSize(da, cellcone[2], &nC)); in FormFunction()
237 if (nC == 2) flux_north = (x[cellsupport[1]] * (v_minus - user->diffusion * delta_x)) / delta_y; in FormFunction()
241 PetscCall(DMPlexGetSupportSize(da, cellcone[3], &nC)); in FormFunction()
243 if (nC == 2) flux_west = (x[cellsupport[0]] * (-u_plus - user->diffusion * delta_y)) / delta_x; in FormFunction()
/petsc/src/dm/impls/plex/tests/
H A Dex2f90.F9014 PetscInt dim, cell, size, nC
91 PetscCallA(DMPlexGetTransitiveClosure(dm, cell, PETSC_TRUE, nC, nClosure, ierr))
97 PetscCallA(DMPlexRestoreTransitiveClosure(dm, cell, PETSC_TRUE, nC, nClosure, ierr))
/petsc/src/dm/impls/plex/
H A Dplexvtu.c73 PetscInt nverts, dof = 0, celltype, startoffset, nC = 0; in DMPlexGetVTKConnectivity() local
91 else PetscCall(PetscVTKIntCast(startoffset + nC, &conn[countconn++])); in DMPlexGetVTKConnectivity()
92 ++nC; in DMPlexGetVTKConnectivity()
97 …for (nC = 0; nC < dof / dim; nC++) PetscCall(PetscVTKIntCast(startoffset + nC, &conn[countconn++])… in DMPlexGetVTKConnectivity()
101 PetscInt n = PetscMin(nC, 8), s = countconn - nC, i, cone[8]; in DMPlexGetVTKConnectivity()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c1821 PetscInt nX, nC; in ReadLabelStratumHDF5_Distribute_Private() local
1825 PetscCall(PetscSFGetGraph(sfXC, &nX, &nC, NULL, NULL)); in ReadLabelStratumHDF5_Distribute_Private()
1836 PetscCall(PetscCalloc3(n, &A_mask, nX, &X_mask, nC, &C_mask)); in ReadLabelStratumHDF5_Distribute_Private()
1842 PetscCall(ISGeneralSetIndicesFromMask(*newStratumIS, 0, nC, C_mask)); in ReadLabelStratumHDF5_Distribute_Private()