def flag_greens_on_set(func):
    """Decorator to signal Green's functions are now out of date."""
    def setter_wrapper(obj, value):
        retval = func(obj, value)
        obj._uptodate = False
        return retval
    return setter_wrapper