-
Notifications
You must be signed in to change notification settings - Fork 479
Port CLM cryosphere and hydrology fixes into ELM #8638
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
base: master
Are you sure you want to change the base?
Changes from all commits
c304fff
3f7fd0f
5bdf5f2
4b7a01a
fbfcc93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -554,23 +554,23 @@ subroutine Infiltration(bounds, num_hydrologyc, filter_hydrologyc, num_urbanc, f | |
| !5. surface runoff from h2osfc | ||
| if (h2osfcflag==1) then | ||
| ! calculate runoff from h2osfc ------------------------------------- | ||
| if (use_modified_infil) then | ||
| !if (use_modified_infil) then | ||
| if (frac_h2osfc_act(c) <= pc .and. frac_h2osfc(c) <= pc) then | ||
| frac_infclust=0.0_r8 | ||
| else | ||
| if (frac_h2osfc(c) <= pc) then | ||
| if (frac_h2osfc_act(c) <= pc) then | ||
| frac_infclust=(frac_h2osfc_act(c)-pc)**mu | ||
| else | ||
| frac_infclust=(frac_h2osfc(c)-pc)**mu | ||
| frac_infclust=(frac_h2osfc_act(c)-pc)**mu | ||
| endif | ||
|
Comment on lines
555
to
565
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with Copilot's review: Why is the second |
||
| endif | ||
| else | ||
| if (frac_h2osfc(c) <= pc) then | ||
| frac_infclust=0.0_r8 | ||
| else | ||
| frac_infclust=(frac_h2osfc(c)-pc)**mu | ||
| endif | ||
| endif | ||
| !else | ||
| ! if (frac_h2osfc(c) <= pc) then | ||
| ! frac_infclust=0.0_r8 | ||
| ! else | ||
| ! frac_infclust=(frac_h2osfc(c)-pc)**mu | ||
| ! endif | ||
| !endif | ||
|
Comment on lines
+557
to
+573
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems to me that we are making the Or, if
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| endif | ||
|
|
||
| if (lun_pp%ispolygon(col_pp%landunit(c))) then | ||
|
|
@@ -596,7 +596,7 @@ subroutine Infiltration(bounds, num_hydrologyc, filter_hydrologyc, num_urbanc, f | |
| ! limit runoff to value of storage above S(pc) | ||
| if(h2osfc(c) >= h2osfc_thresh(c) .and. h2osfcflag/=0) then | ||
| ! spatially variable k_wet | ||
| k_wet=1.0_r8 * sin((rpi/180._r8) * col_pp%topo_slope(c)) | ||
| k_wet=1.0e-4_r8 * sin((rpi/180._r8) * max(col_pp%topo_slope(c), 1.0e-3_r8)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the logic of reducing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A bug from the misuse of unit |
||
| qflx_h2osfc_surf(c) = k_wet * frac_infclust * (h2osfc(c) - h2osfc_thresh(c)) | ||
|
|
||
| qflx_h2osfc_surf(c)=min(qflx_h2osfc_surf(c),(h2osfc(c) - h2osfc_thresh(c))/dtime) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the default value of
subgridflag1 or 0?