Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to calculation of OUT_PREC for output files when LAKES=TRUE. #310

Closed
wants to merge 3 commits into from

Conversation

tbohn
Copy link
Contributor

@tbohn tbohn commented Nov 17, 2015

This addresses issue #308.

@tbohn
Copy link
Contributor Author

tbohn commented Nov 17, 2015

Going to add another commit in a minute...

…es that top lake basin area matches veg tile area fraction even if VIC does any rescaling.
@@ -167,6 +167,13 @@ lake_con_struct read_lakeparam(FILE *lakeparam,
sprintf(tmpstr, "Lake area fraction (%f) for cell (%d) specified in the lake parameter file must be a fraction between 0 and 1.", temp.Cl[0], soil_con.gridcel);
nrerror(tmpstr);
}
if(fabs(1-temp.Cl[0]/veg_con[temp.lake_idx].Cv) > 0.01) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you run this through uncrustify first? The whitespace is inconsistent with what we use in the updated code. See here for info. Use the uncrustify_VIC_c.cfg as the confit file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually hold off on that - since 4.2 has not been reformatted anyway. @jhamman : Should this go on a hit fix branch first or can this go directly into master?

@jhamman
Copy link
Member

jhamman commented Nov 30, 2015

Also @tbohn, can you redirect this PR to the hotfix.4.2.c branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants