UW-Hydro / VIC

The Variable Infiltration Capacity (VIC) Macroscale Hydrologic Model
http://vic.readthedocs.io
MIT License
260 stars 383 forks source link

Bug in VIC5 vic_init Zsum_node calculation #911

Open BramDr opened 3 years ago

BramDr commented 3 years ago

Dear Mr/Ms,

I have found another bug in the calculation of Zsum_node in the vic_init function (version VIC.5.0.1 - latest release)

Lines 845, 846, 848 of vic_init soil_con[0].depth[0] should be replaced with soil_con[i].depth[0] Note that the soil_con index has changed from [0] to [i] (as it is everywhere else). Otherwise the dz_node and Zsum_node variables depths are determined by the first soil depth (of the area), instead of the current soil depth. Maybe you can fix it in this repository?

Cheers!