Problems: 1. initial state information from lake parameters is not getting passed correctly to generate_default_lake_state(); 2. errors writing lake variables to state file.
Proposed solutions: 1. change argument list of generate_default_lake_state() to take the address of the lake_var struct rather than all_vars[i]; 2. fix typos in parts of vic_store.c and vic_init_output.c pertaining to lake variables.
generate_default_lake_state()
; 2. errors writing lake variables to state file.generate_default_lake_state()
to take the address of thelake_var
struct rather thanall_vars[i]
; 2. fix typos in parts ofvic_store.c
andvic_init_output.c
pertaining to lake variables.