def sum_cells(grid_type, max_level_refinement):
    """
    collect all cells of one type in a list
    """
    sum_cells = []
    for i in range(max_level_refinement):
        sum_cells += grid_type[i]
    return sum_cells