Skip to content

Commit

Permalink
Minor modification.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsp8 committed Dec 7, 2024
1 parent 2166830 commit 1c5dd56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main/MOD_Hist.F90
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ SUBROUTINE hist_out (idate, deltim, itstamp, etstamp, ptstamp, &
CASE ('YEARLY')
lwrite = isendofyear (idate, deltim) .or. (.not. (itstamp < etstamp))
CASE default
lwrite = .false.
write(*,*) 'Warning : Please USE one of TIMESTEP/HOURLY/DAILY/MONTHLY/YEARLY for history frequency.'
write(*,*) ' Set to FALSE by default. '
END select

IF (lwrite) THEN
Expand Down
2 changes: 2 additions & 0 deletions main/MOD_Vars_TimeVariables.F90
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,9 @@ FUNCTION save_to_restart (idate, deltim, itstamp, ptstamp) result(rwrite)
CASE ('YEARLY')
rwrite = isendofyear(idate, deltim)
CASE default
rwrite = .false.
write(*,*) 'Warning: Please USE one of TIMESTEP/HOURLY/DAILY/MONTHLY/YEARLY for restart frequency.'
write(*,*) ' Set to FALSE by default. '
ENDSELECT

IF (rwrite) THEN
Expand Down
2 changes: 1 addition & 1 deletion mksrfdata/MOD_LandPatch.F90
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ SUBROUTINE landpatch_build (lc_year)
file_patch = trim(DEF_dir_rawdata)//'landtypes/landtype-igbp-modis-'//trim(cyear)//'.nc'
#else
!TODO: need usgs land cover type data
file_patch = trim(DEF_dir_rawdata) //'/landtypes/landtype_usgs_update.nc'
file_patch = trim(DEF_dir_rawdata) //'/landtypes/landtype-usgs-update.nc'
#endif
CALL ncio_read_block (file_patch, 'landtype', gpatch, patchdata)

Expand Down

0 comments on commit 1c5dd56

Please sign in to comment.