Skip to content

Commit 460946a

Browse files
committed
Framework - Fix enqueue logic to only get net solar.
When configuring to only output net solar, the albedo needs precipitation, which requires air temperature and vapor pressure.
1 parent 254a883 commit 460946a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

smrf/framework/model_framework.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ def create_distribution(self):
261261
Solar.is_requested(self.output_variables) or
262262
Albedo.is_requested(self.output_variables)
263263
):
264-
# Need precip for albedo:
264+
# Need precipitation (days since last storm)
265+
self.distribute[AirTemperature.DISTRIBUTION_KEY] = AirTemperature(**init_args)
266+
self.distribute[VaporPressure.DISTRIBUTION_KEY] = VaporPressure(**init_args)
265267
self.distribute[Precipitation.DISTRIBUTION_KEY] = Precipitation(
266268
**init_args,
267269
start_date=self.start_date,

0 commit comments

Comments
 (0)