------
## 最终结论
```python
def max_fill(grid, capacity):
    import math
    total_units = sum(sum(row) for row in grid)
    return math.ceil(total_units / capacity)
```