atmtools / konrad

Implementation of a radiative-convective equilibrium model.
MIT License
19 stars 18 forks source link

Fix variable initialization #152

Closed lkluft closed 3 years ago

lkluft commented 3 years ago

This PR fixes the initialization of the cooling_rates variable in the StratosphericUpwelling class. In some cases - when the upwelling was never actually applied - the old implementation lead to crashes when attempting to write to netCDF.