Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For lakes, when reading restart file: set frac_sno=1 if snow_depth>0
Due to ESCOMP#783, old restart files can have frac_sno == 0 for lake points despite having a snow pack. This can cause other problems, so fix that here. (This mainly impacts restart files produced by versions prior to the initial fix of ESCOMP#783 - i.e., prior to ctsm1.0.dev057. However, in principle, restart files produced by versions after that tag could still have this issue, since this backwards compatibility code wasn't in place at that point, so frac_sno could have persisted at 0 if there were no new snow since the last restart file was written. So, to be safe, this backwards compatibility code should be left in place until we can rely on all restart files being from versions later than the tag where this backwards compatibility was first implemented.) The criteria snow_depth > 0 seems as good as any for determining if there was actually snow present in a given column on the restart file.
- Loading branch information