def get_component_instance(self, state_modification_func=lambda x: x): dycore = GFSDynamicalCore(number_of_longitudes=68, number_of_latitudes=32) radiation = RRTMGLongwave() dycore.prognostics = [radiation] return dycore
def tests_dycore_with_prognostic_attrs_are_sane(): dycore = GFSDynamicalCore(number_of_longitudes=68, number_of_latitudes=32) radiation = RRTMGLongwave() dycore.prognostics = [radiation] for quantity in radiation.diagnostics: assert quantity in dycore.diagnostics for quantity in radiation.inputs: assert quantity in dycore.inputs