Lines Matching refs:nel
756 PetscInt nel; in DMSwarmCreatePointPerCellCount() local
762 nel = 0; in DMSwarmCreatePointPerCellCount()
766 PetscCall(DMSwarmSortGetSizes(sw, &nel, NULL)); in DMSwarmCreatePointPerCellCount()
768 PetscCall(PetscMalloc1(nel, &sum)); in DMSwarmCreatePointPerCellCount()
769 for (e = 0; e < nel; e++) PetscCall(DMSwarmSortGetNumberOfPointsPerCell(sw, e, &sum[e])); in DMSwarmCreatePointPerCellCount()
787 nel = _nel; in DMSwarmCreatePointPerCellCount()
793 nel = pe - ps; in DMSwarmCreatePointPerCellCount()
799 PetscCall(method_DMShellGetNumberOfCells(dm, &nel)); in DMSwarmCreatePointPerCellCount()
804 PetscCall(PetscMalloc1(nel, &sum)); in DMSwarmCreatePointPerCellCount()
805 PetscCall(PetscArrayzero(sum, nel)); in DMSwarmCreatePointPerCellCount()
814 if (ncells) *ncells = nel; in DMSwarmCreatePointPerCellCount()