import math


def find_nproc(n, min_n_per_proc=25):
    """
    Find number of processors needed for a given number grid points in WRF.

    Parameters
    ----------
    n : int
        number of grid points
    min_n_per_proc : int, optional
        Minimum number of grid points per processor. The default is 25.

    Returns
    -------
    int
        number of processors.

    """
    if n <= min_n_per_proc:
        return 1
    else:
        return math.floor(n / min_n_per_proc)