Update modelwrite.f90 to add in hruId to restart files#575
Update modelwrite.f90 to add in hruId to restart files#575DaveCasson wants to merge 3 commits intoCH-Earth:developfrom
Conversation
The need for the hruId index has been discussed in several issues. Notably CH-Earth#253 Also CH-Earth#419, CH-Earth#401 This PR adds writing of hruId to the restart file without modification to other code and while using the existing hruInfo structure.
|
Nice, thanks! Couple of things for posterity:
|
3)The hru ids being assigned in the correct order comes down to this loop: ! Allocate and fill hruIds array So it is a direct pull and write from that existing data structure. A unit test to compare say to attribute hruId could be useful, but support would be needed to see if / why / how that would be implemented. |
The need for the hruId index has been discussed in several issues. Notably #253 Also #419, #401
This PR adds writing of hruId to the restart file without modification to other code and while using the existing hruInfo structure.
Make sure all the relevant boxes are checked (and only check the box if you actually completed the step):
./summa/docs/whats-new.md)