Home
last modified time | relevance | path

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

/petsc/src/dm/impls/swarm/tests/
H A Dex6.c339 PetscInt Ncp, cp; in ComputeFieldAtParticles_Primal() local
341 PetscCall(DMSwarmSortGetPointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
342 PetscCall(DMGetWorkArray(dm, Ncp * dim, MPIU_REAL, &pcoord)); in ComputeFieldAtParticles_Primal()
343 PetscCall(DMGetWorkArray(dm, Ncp * dim, MPIU_REAL, &refcoord)); in ComputeFieldAtParticles_Primal()
344 for (cp = 0; cp < Ncp; ++cp) in ComputeFieldAtParticles_Primal()
346 PetscCall(DMPlexCoordinatesToReference(dm, c, Ncp, pcoord, refcoord)); in ComputeFieldAtParticles_Primal()
347 PetscCall(PetscFECreateTabulation(fe, 1, Ncp, refcoord, 1, &tab)); in ComputeFieldAtParticles_Primal()
350 for (cp = 0; cp < Ncp; ++cp) { in ComputeFieldAtParticles_Primal()
359 PetscCall(DMRestoreWorkArray(dm, Ncp * dim, MPIU_REAL, &pcoord)); in ComputeFieldAtParticles_Primal()
360 PetscCall(DMRestoreWorkArray(dm, Ncp * dim, MPIU_REAL, &refcoord)); in ComputeFieldAtParticles_Primal()
[all …]
/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c1654 PetscInt Ncp; in ComputeFieldAtParticles_Primal() local
1656 PetscCall(DMSwarmSortGetNumberOfPointsPerCell(sw, c, &Ncp)); in ComputeFieldAtParticles_Primal()
1657 maxNcp = PetscMax(maxNcp, Ncp); in ComputeFieldAtParticles_Primal()
1665 PetscInt Ncp; in ComputeFieldAtParticles_Primal() local
1667 PetscCall(DMSwarmSortGetPointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
1668 for (PetscInt cp = 0; cp < Ncp; ++cp) in ComputeFieldAtParticles_Primal()
1672 for (PetscInt i = 0; i < Ncp; ++i) { in ComputeFieldAtParticles_Primal()
1677 PetscCall(PetscFEComputeTabulation(fe, Ncp, refcoord, 1, tab)); in ComputeFieldAtParticles_Primal()
1679 for (PetscInt cp = 0; cp < Ncp; ++cp) { in ComputeFieldAtParticles_Primal()
1688 PetscCall(DMSwarmSortRestorePointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
[all …]
H A Dex3.c1069 PetscInt Ncp; in ComputeFieldAtParticles_Primal() local
1071 PetscCall(DMSwarmSortGetNumberOfPointsPerCell(sw, c, &Ncp)); in ComputeFieldAtParticles_Primal()
1072 maxNcp = PetscMax(maxNcp, Ncp); in ComputeFieldAtParticles_Primal()
1081 PetscInt Ncp; in ComputeFieldAtParticles_Primal() local
1083 PetscCall(DMSwarmSortGetPointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
1084 for (PetscInt cp = 0; cp < Ncp; ++cp) in ComputeFieldAtParticles_Primal()
1088 for (PetscInt i = 0; i < Ncp; ++i) { in ComputeFieldAtParticles_Primal()
1093 PetscCall(PetscFEComputeTabulation(fe, Ncp, refcoord, 1, tab)); in ComputeFieldAtParticles_Primal()
1095 for (PetscInt cp = 0; cp < Ncp; ++cp) { in ComputeFieldAtParticles_Primal()
1104 PetscCall(DMSwarmSortRestorePointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
[all …]
H A Dex4.c2255 PetscInt Ncp; in ComputeFieldAtParticles_Primal() local
2257 PetscCall(DMSwarmSortGetNumberOfPointsPerCell(sw, c, &Ncp)); in ComputeFieldAtParticles_Primal()
2258 maxNcp = PetscMax(maxNcp, Ncp); in ComputeFieldAtParticles_Primal()
2269 PetscInt Ncp; in ComputeFieldAtParticles_Primal() local
2271 PetscCall(DMSwarmSortGetPointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
2272 for (PetscInt cp = 0; cp < Ncp; ++cp) in ComputeFieldAtParticles_Primal()
2276 for (PetscInt i = 0; i < Ncp; ++i) { in ComputeFieldAtParticles_Primal()
2281 PetscCall(PetscFEComputeTabulation(fe, Ncp, refcoord, 1, tab)); in ComputeFieldAtParticles_Primal()
2283 for (PetscInt cp = 0; cp < Ncp; ++cp) { in ComputeFieldAtParticles_Primal()
2292 PetscCall(DMSwarmSortRestorePointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
[all …]
/petsc/src/ts/tests/
H A Dex28.c280 PetscInt dim, d, Np, Ncp, p, cStart, cEnd, c; in RHSFunctionParticles() local
294 Ncp = Np / (cEnd - cStart); in RHSFunctionParticles()
319 PetscInt sp = c * Ncp, q; in RHSFunctionParticles()
325 for (q = 0; q < Ncp; ++q) r[sp + q] = (1.0 / relaxation) * (neq - u[sp + q]); in RHSFunctionParticles()