def neighbor_check(node, **kargs):
    """
    Check that if a finer neighbor refined we also refine.
    This enforces that the maximum discrepency in neighbor levels
    is one.
    """
    if not node.rflag:
        return
    _, _, _, neighbors = node.find_neighbors(**kargs)
    for n in neighbors:
        if n is not None:
            if n.leaf:
                n.rflag = True
