Skip to content

Commit

Permalink
Merge pull request #360 from yuanhuas/master
Browse files Browse the repository at this point in the history
Only print warning for the first time-step for reference height less than htop/hroof+1m.
  • Loading branch information
CoLM-SYSU authored Jan 8, 2025
2 parents 5e80759 + f8b7c46 commit e529319
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
9 changes: 6 additions & 3 deletions main/MOD_LeafTemperature.F90
Original file line number Diff line number Diff line change
Expand Up @@ -529,17 +529,20 @@ SUBROUTINE LeafTemperature ( &

IF (hu <= htop+1) THEN
hu_ = htop + 1.
write(6,*) 'Warning: the obs height of u less than htop+1, set it to htop+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of u less than htop+1, set it to htop+1.'
ENDIF

IF (ht <= htop+1) THEN
ht_ = htop + 1.
write(6,*) 'Warning: the obs height of t less than htop+1, set it to htop+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of t less than htop+1, set it to htop+1.'
ENDIF

IF (hq <= htop+1) THEN
hq_ = htop + 1.
write(6,*) 'Warning: the obs height of q less than htop+1, set it to htop+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of q less than htop+1, set it to htop+1.'
ENDIF

ELSE ! relative height
Expand Down
9 changes: 6 additions & 3 deletions main/MOD_LeafTemperaturePC.F90
Original file line number Diff line number Diff line change
Expand Up @@ -913,17 +913,20 @@ SUBROUTINE LeafTemperaturePC ( &

IF (hu <= htop_lay(toplay)+1) THEN
hu_ = htop_lay(toplay) + 1.
write(6,*) 'Warning: the obs height of u less than htop+1, set it to htop+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of u less than htop+1, set it to htop+1.'
ENDIF

IF (ht <= htop_lay(toplay)+1) THEN
ht_ = htop_lay(toplay) + 1.
write(6,*) 'Warning: the obs height of t less than htop+1, set it to htop+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of t less than htop+1, set it to htop+1.'
ENDIF

IF (hq <= htop_lay(toplay)+1) THEN
hq_ = htop_lay(toplay) + 1.
write(6,*) 'Warning: the obs height of q less than htop+1, set it to htop+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of q less than htop+1, set it to htop+1.'
ENDIF

ELSE ! relative height
Expand Down
18 changes: 12 additions & 6 deletions main/URBAN/MOD_Urban_Flux.F90
Original file line number Diff line number Diff line change
Expand Up @@ -516,17 +516,20 @@ SUBROUTINE UrbanOnlyFlux ( &

IF (hu <= hroof+1) THEN
hu_ = hroof + 1.
write(6,*) 'Warning: the obs height of u less than htop+1, set it to hroof+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of u less than hroof+1, set it to hroof+1.'
ENDIF

IF (ht <= hroof+1) THEN
ht_ = hroof + 1.
write(6,*) 'Warning: the obs height of t less than htop+1, set it to hroof+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of t less than hroof+1, set it to hroof+1.'
ENDIF

IF (hq <= hroof+1) THEN
hq_ = hroof + 1.
write(6,*) 'Warning: the obs height of q less than htop+1, set it to hroof+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of q less than hroof+1, set it to hroof+1.'
ENDIF

ELSE ! relative height
Expand Down Expand Up @@ -1515,17 +1518,20 @@ SUBROUTINE UrbanVegFlux ( &

IF (hu <= hroof+1) THEN
hu_ = hroof + 1.
write(6,*) 'Warning: the obs height of u less than hroof+1, set it to hroof+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of u less than hroof+1, set it to hroof+1.'
ENDIF

IF (ht <= hroof+1) THEN
ht_ = hroof + 1.
write(6,*) 'Warning: the obs height of t less than hroof+1, set it to hroof+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of t less than hroof+1, set it to hroof+1.'
ENDIF

IF (hq <= hroof+1) THEN
hq_ = hroof + 1.
write(6,*) 'Warning: the obs height of q less than hroof+1, set it to hroof+1.'
IF (taux == spval) & ! only print warning for the firt time-step
write(6,*) 'Warning: the obs height of q less than hroof+1, set it to hroof+1.'
ENDIF

ELSE ! relative height
Expand Down

0 comments on commit e529319

Please sign in to comment.