Skip to content

Commit

Permalink
Merge pull request #842 from tbohn/fix/fix_lake_bugs
Browse files Browse the repository at this point in the history
Fixed typo in vic_store.c that wrote wrong variable as lake soil T.
  • Loading branch information
bartnijssen committed Oct 3, 2018
2 parents 528498f + 0462636 commit 4261b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vic/drivers/shared_image/src/vic_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ vic_store(dmy_struct *dmy_state,
for (j = 0; j < options.Nnode; j++) {
d3start[0] = j;
for (i = 0; i < local_domain.ncells_active; i++) {
dvar[i] = (double) all_vars[i].lake_var.soil.layer[j].moist;
dvar[i] = (double) all_vars[i].lake_var.energy.T[j];
}
gather_put_nc_field_double(nc_state_file.nc_id,
nc_var->nc_varid,
Expand Down

0 comments on commit 4261b77

Please sign in to comment.