Lines Matching refs:Np
183 PetscInt Np; in CheckNonNegativeWeights() local
188 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in CheckNonNegativeWeights()
189 …for (PetscInt p = 0; p < Np; ++p) PetscCheck(w[p] >= 0.0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "P… in CheckNonNegativeWeights()
230 PetscInt *species, dim, Np, gNp; in MonitorEField() local
238 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in MonitorEField()
246 for (PetscInt p = 0; p < Np; ++p) { in MonitorEField()
309 PetscInt Np, dim; in MonitorParticles() local
321 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in MonitorParticles()
337 PetscCall(VecCreateMPIWithArray(comm, dim, Np * dim, PETSC_DECIDE, x, &vx)); in MonitorParticles()
338 PetscCall(VecCreateMPIWithArray(comm, dim, Np * dim, PETSC_DECIDE, v, &vv)); in MonitorParticles()
339 PetscCall(VecCreateMPIWithArray(comm, 1, Np, PETSC_DECIDE, w, &vw)); in MonitorParticles()
340 PetscCall(VecCreateMPIWithArray(comm, dim, Np * dim, PETSC_DECIDE, E, &vE)); in MonitorParticles()
459 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local
486 Np = (xcEnd - xcStart) * Npc; in InitializeParticles_Centroid()
487 PetscCall(DMSwarmSetLocalSizes(sw, Np, 0)); in InitializeParticles_Centroid()
490 PetscCallMPI(MPIU_Allreduce(&Np, &gNp, 1, MPIU_INT, MPIU_SUM, comm)); in InitializeParticles_Centroid()
709 PetscInt Np, dim; in InitializeConstants() local
714 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in InitializeConstants()
718 for (PetscInt p = 0; p < Np; ++p) { in InitializeConstants()
988 PetscInt dim, cStart, cEnd, Np; in ComputeFieldAtParticles_Primal() local
994 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in ComputeFieldAtParticles_Primal()
1122 PetscInt dim, Np; in ComputeFieldAtParticles() local
1128 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in ComputeFieldAtParticles()
1138 PetscCall(PetscArrayzero(E, Np * dim)); in ComputeFieldAtParticles()
1154 PetscInt dim, d, Np, p; in RHSFunction() local
1161 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in RHSFunction()
1165 Np /= 2 * dim; in RHSFunction()
1166 for (p = 0; p < Np; ++p) { in RHSFunction()
1188 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local
1193 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in RHSJacobian()
1197 Np /= 2 * dim; in RHSJacobian()
1198 for (p = 0; p < Np; ++p) { in RHSJacobian()
1220 PetscInt Np, p, d, dim; in RHSFunctionX() local
1226 PetscCall(VecGetLocalSize(Xres, &Np)); in RHSFunctionX()
1229 Np /= dim; in RHSFunctionX()
1230 for (p = 0; p < Np; ++p) { in RHSFunctionX()
1247 PetscInt Np, p, dim, d; in RHSFunctionV() local
1260 PetscCall(VecGetLocalSize(Vres, &Np)); in RHSFunctionV()
1263 Np /= dim; in RHSFunctionV()
1264 for (p = 0; p < Np; ++p) { in RHSFunctionV()
1278 for (PetscInt p = 0; p < Np; ++p) { in RHSFunctionV()
1295 PetscInt dim, d, Np, p, rStart; in RHSJacobianS() local
1300 PetscCall(VecGetLocalSize(U, &Np)); in RHSJacobianS()
1302 Np /= 2 * dim; in RHSJacobianS()
1303 for (p = 0; p < Np; ++p) { in RHSJacobianS()
1320 PetscInt dim, Np, cStart, cEnd; in RHSObjectiveF() local
1337 PetscCall(VecGetLocalSize(U, &Np)); in RHSObjectiveF()
1338 Np /= 2 * dim; in RHSObjectiveF()
1368 PetscInt dim, d, Np, p; in RHSFunctionG() local
1373 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in RHSFunctionG()
1385 for (p = 0; p < Np; ++p) { in RHSFunctionG()
1403 PetscInt dim, Np; in CreateSolution() local
1408 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in CreateSolution()
1411 PetscCall(VecSetSizes(u, 2 * Np * dim, PETSC_DECIDE)); in CreateSolution()
1429 PetscInt dim, Np; in SetProblem() local
1432 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in SetProblem()
1434 PetscCall(MatSetSizes(J, 2 * Np * dim, 2 * Np * dim, PETSC_DECIDE, PETSC_DECIDE)); in SetProblem()
1447 PetscInt dim, Np, rstart; in SetProblem() local
1451 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in SetProblem()
1453 PetscCall(ISCreateStride(PETSC_COMM_WORLD, Np, (rstart / dim) + 0, 2, &istmp)); in SetProblem()
1455 PetscCall(ISCreateBlock(PETSC_COMM_WORLD, dim, Np, idx, PETSC_COPY_VALUES, &isx)); in SetProblem()
1458 PetscCall(ISCreateStride(PETSC_COMM_WORLD, Np, (rstart / dim) + 1, 2, &istmp)); in SetProblem()
1460 PetscCall(ISCreateBlock(PETSC_COMM_WORLD, dim, Np, idx, PETSC_COPY_VALUES, &isv)); in SetProblem()
1510 PetscInt Np; in line() local
1518 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in line()
1520 x[0] = ((high[0] - low[0]) / Np) * (p + 0.5); in line()
1608 PetscInt Np, dim; in MigrateParticles() local
1610 PetscCall(DMSwarmGetLocalSize(sw, &Np)); in MigrateParticles()
1615 for (PetscInt p = 0; p < Np; ++p) { in MigrateParticles()