| /petsc/src/ksp/ksp/utils/dm/ |
| H A D | dmproject.c | 1016 PetscInt dim, xcdim, vcdim, xcStart, xcEnd, vcStart, vcEnd, Np, Nfc; in DMSwarmRemap_Colella_Internal() local 1039 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in DMSwarmRemap_Colella_Internal() 1054 xend[0] = xcEnd - xcStart; in DMSwarmRemap_Colella_Internal() 1074 for (PetscInt c = 0; c < xcEnd - xcStart; ++c) { in DMSwarmRemap_Colella_Internal() 1245 PetscInt xcStart, xcEnd, vcStart, vcEnd, cStart, cEnd, r; in DMSwarmRemap_PFAK_Internal() local 1248 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in DMSwarmRemap_PFAK_Internal() 1251 r = (PetscInt)PetscSqrtReal(((xcEnd - xcStart) * (vcEnd - vcStart)) / (cEnd - cStart)); in DMSwarmRemap_PFAK_Internal()
|
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 459 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local 478 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in InitializeParticles_Centroid() 486 Np = (xcEnd - xcStart) * Npc; in InitializeParticles_Centroid() 489 PetscInt gNp, gNc, Nc = xcEnd - xcStart; in InitializeParticles_Centroid() 502 for (PetscInt c = 0, p = 0; c < xcEnd - xcStart; ++c) { in InitializeParticles_Centroid() 520 for (PetscInt c = 0; c < xcEnd - xcStart; ++c) { in InitializeParticles_Centroid() 588 …PetscInt dim, Ns, xcStart, xcEnd, vcStart, vcEnd, debug = ((DM_Swarm *)sw->data)->printWei… in InitializeWeights() local 598 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in InitializeWeights() 612 for (PetscInt c = xcStart; c < xcEnd; ++c) { in InitializeWeights()
|
| H A D | ex2.c | 1161 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local 1180 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in InitializeParticles_Centroid() 1188 Np = (xcEnd - xcStart) * Npc; in InitializeParticles_Centroid() 1191 PetscInt gNp, gNc, Nc = xcEnd - xcStart; in InitializeParticles_Centroid() 1204 for (PetscInt c = 0, p = 0; c < xcEnd - xcStart; ++c) { in InitializeParticles_Centroid() 1221 for (PetscInt c = 0; c < xcEnd - xcStart; ++c) { in InitializeParticles_Centroid() 1285 …PetscInt dim, Ns, xcStart, xcEnd, vcStart, vcEnd, debug = ((DM_Swarm *)sw->data)->printWei… in InitializeWeights() local 1295 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in InitializeWeights() 1309 for (PetscInt c = xcStart; c < xcEnd; ++c) { in InitializeWeights()
|
| H A D | ex4.c | 1775 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local 1794 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in InitializeParticles_Centroid() 1802 Np = (xcEnd - xcStart) * Npc; in InitializeParticles_Centroid() 1805 PetscInt gNp, gNc, Nc = xcEnd - xcStart; in InitializeParticles_Centroid() 1818 for (PetscInt c = 0, p = 0; c < xcEnd - xcStart; ++c) { in InitializeParticles_Centroid() 1835 for (PetscInt c = 0; c < xcEnd - xcStart; ++c) { in InitializeParticles_Centroid() 1899 …PetscInt dim, Ns, xcStart, xcEnd, vcStart, vcEnd, debug = ((DM_Swarm *)sw->data)->printWei… in InitializeWeights() local 1909 PetscCall(DMPlexGetHeightStratum(xdm, 0, &xcStart, &xcEnd)); in InitializeWeights() 1923 for (PetscInt c = xcStart; c < xcEnd; ++c) { in InitializeWeights()
|