Searched refs:npc_s (Results 1 – 1 of 1) sorted by relevance
989 PetscInt *npc_s, *swarm_cellid, Ni; in DMSwarmComputeLocalSize() local1006 PetscCall(PetscCalloc2(Ns, &n_int, (cEnd - cStart) * Ns, &npc_s)); in DMSwarmComputeLocalSize()1028 npc_s[c * Ns + s] += (PetscInt)(Ni * n_int[s] + 0.5); // TODO Wish we wrapped round() in DMSwarmComputeLocalSize()1029 Np += npc_s[c * Ns + s]; in DMSwarmComputeLocalSize()1039 for (q = 0; q < npc_s[c * Ns + s]; ++q, ++p) swarm_cellid[p] = c; in DMSwarmComputeLocalSize()1043 PetscCall(PetscFree2(n_int, npc_s)); in DMSwarmComputeLocalSize()