import math


def __calculateGridAxis(length, local):
    """
    Calculates the grid axis.

    Parameters
    ----------
    length : int.
        Global length.
    local : int.
        Local size.

    Returns
    -------
    grid : int
        Calculated grid size.

    """

    return int(math.ceil(float(length) / float(local)))