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

update cmf_ctrl_damout_mod.F90 #244

Merged
merged 4 commits into from
Jan 28, 2024
Merged

Conversation

zslthu
Copy link
Contributor

@zslthu zslthu commented Jan 25, 2024

No description provided.


!*** 2. read namelist
REWIND(NSETFILE)
READ(NSETFILE,NML=NDAMOUT)
Copy link
Contributor

Choose a reason for hiding this comment

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

lowercase


NDAMFILE=INQUIRE_FID()
open(NDAMFILE,FILE=CDAMFILE_tmp,STATUS="OLD")
READ(NDAMFILE,*) NDAM
Copy link
Contributor

Choose a reason for hiding this comment

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

lowercase

NDAMX = 0

DO IDAM = 1, NDAM
READ(NDAMFILE,*) GRanD_ID(IDAM), DamName, DamLon, DamLat, totalsto, upreal(IDAM), MainUse(IDAM), CYear, IX, IY
Copy link
Contributor

Choose a reason for hiding this comment

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

change all read to lowercase

READ(NDAMFILE,*)

!! --- ALLOCATE ---
ALLOCATE(Qn(NDAM), Qf(NDAM))
Copy link
Contributor

Choose a reason for hiding this comment

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

allocate to lowercase


!! --- ALLOCATE ---
!! from dam water use data
ALLOCATE(WUSE_DD(NDAM, NSTEPS))
Copy link
Contributor

Choose a reason for hiding this comment

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

all allocate to lowercase

OutTmp = Q_n
ENDIF
ENDIF
elseif ( MthNdFC > MthStOP ) THEN
Copy link
Contributor

Choose a reason for hiding this comment

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

change all elseif to upper case

! the condition described below is applied in order to prevent outflow values that are too large compared to the inflow value.
! reference: https://github.com/ec-jrc/lisflood-code
IF (F < L_f .and. outflw > min(1.2 * inflw, Qadj_nor)) THEN
outflw = min(outflw, max(inflw, Qadj_nor))
Copy link
Contributor

Choose a reason for hiding this comment

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

change all max min to uppercase

@CoLM-SYSU CoLM-SYSU merged commit ad6bf06 into CoLM-SYSU:master Jan 28, 2024
24 checks passed
xuxh1 pushed a commit to xuxh1/CoLM202X that referenced this pull request Oct 26, 2024
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