Lines Matching refs:Ncp
339 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()
362 PetscCall(DMSwarmSortRestorePointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Primal()
456 PetscInt Ncp, cp; in ComputeFieldAtParticles_Mixed() local
458 PetscCall(DMSwarmSortGetPointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Mixed()
459 PetscCall(DMGetWorkArray(dm, Ncp * dim, MPIU_REAL, &pcoord)); in ComputeFieldAtParticles_Mixed()
460 PetscCall(DMGetWorkArray(dm, Ncp * dim, MPIU_REAL, &refcoord)); in ComputeFieldAtParticles_Mixed()
461 for (cp = 0; cp < Ncp; ++cp) in ComputeFieldAtParticles_Mixed()
463 PetscCall(DMPlexCoordinatesToReference(dm, c, Ncp, pcoord, refcoord)); in ComputeFieldAtParticles_Mixed()
464 PetscCall(PetscFECreateTabulation(fe, 1, Ncp, refcoord, 1, &tab)); in ComputeFieldAtParticles_Mixed()
467 for (cp = 0; cp < Ncp; ++cp) { in ComputeFieldAtParticles_Mixed()
477 PetscCall(DMRestoreWorkArray(dm, Ncp * dim, MPIU_REAL, &pcoord)); in ComputeFieldAtParticles_Mixed()
478 PetscCall(DMRestoreWorkArray(dm, Ncp * dim, MPIU_REAL, &refcoord)); in ComputeFieldAtParticles_Mixed()
480 PetscCall(DMSwarmSortRestorePointsPerCell(sw, c, &Ncp, &points)); in ComputeFieldAtParticles_Mixed()
713 PetscInt Ncp; in RHSObjectiveF() local
716 PetscCall(DMSwarmSortGetPointsPerCell(sw, c, &Ncp, &points)); in RHSObjectiveF()
717 for (PetscInt cp = 0; cp < Ncp; ++cp) { in RHSObjectiveF()
728 PetscCall(DMSwarmSortRestorePointsPerCell(sw, c, &Ncp, &points)); in RHSObjectiveF()