Skip to content

Commit

Permalink
Merge pull request #1090 from emkemp/fix/lis74_dim10_restart
Browse files Browse the repository at this point in the history
Extended dimID array for restarts to 11.
  • Loading branch information
jvgeiger authored May 12, 2022
2 parents 4f5ffa8 + 661232d commit 90b16ba
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 27 deletions.
8 changes: 5 additions & 3 deletions lis/core/LIS_historyMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3650,7 +3650,7 @@ subroutine LIS_writeGlobalHeader_restart(ftn,n,m, &
integer, intent(in) :: m
integer, intent(in) :: ftn
character(len=*), intent(in) :: model_name
integer :: dimID(10)
integer :: dimID(11)
integer, optional :: dim1
integer, optional :: dim2
integer, optional :: dim3
Expand Down Expand Up @@ -3755,7 +3755,7 @@ subroutine LIS_writeGlobalHeader_restart(ftn,n,m, &
endif
if(present(dim10)) then
call LIS_verify(nf90_def_dim(ftn,"dim10",&
dim10,dimID(10)),&
dim10,dimID(11)),&
'nf90_def_dim failed for dim10 in LIS_writeGlobalHeader_restart')
endif
call LIS_verify(nf90_put_att(ftn,NF90_GLOBAL,"missing_value", &
Expand Down Expand Up @@ -3900,7 +3900,7 @@ subroutine LIS_writeHeader_restart(ftn,n,dimID, vid, standard_name, &
! !ARGUMENTS:
integer :: ftn
integer :: n
integer :: dimID(10)
integer :: dimID(11)
integer :: vid
character(len=*) :: standard_name
character(len=*) :: long_name
Expand Down Expand Up @@ -3972,6 +3972,8 @@ subroutine LIS_writeHeader_restart(ftn,n,dimID, vid, standard_name, &
dimID_t(2) = dimID(9)
elseif(var_flag_tmp.eq."dim9") then
dimID_t(2) = dimID(10)
elseif(var_flag_tmp.eq."dim10") then
dimID_t(2) = dimID(11)
elseif(var_flag_tmp.eq."tbot_lagday") then
call LIS_verify(nf90_inq_dimid(ftn, "tbot_lagday", dimID_t(2)),&
'nf90_inq_dimid for tbot_lagday failed '//&
Expand Down
2 changes: 1 addition & 1 deletion lis/core/LIS_tbotAdjustMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ subroutine LIS_writeTmnUpdateRestart(n,ftn,dimID,wformat)
! !ARGUMENTS:
integer,intent(in) :: n
integer,intent(in) :: ftn
integer,intent(in) :: dimID(10)
integer,intent(in) :: dimID(11)
character(len=*),intent(in) :: wformat
! !DESCRIPTION:
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ subroutine noahmpglacier3911_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%glacier_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: albold_ID
integer :: sneqvo_ID
integer :: sstc_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/lake/FLake.1.0/FLake1_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ subroutine FLake1_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lake_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: T_snow_ID
integer :: T_ice_ID
integer :: T_mnw_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/awral.6.0.0/AWRAL600_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ subroutine AWRAL600_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10) ! veg classes hardcoded to 10 I guess copied from everyone else
integer :: dimID(11)
integer :: sr_ID
integer :: sg_ID
integer :: s0_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/cable/cable_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ subroutine cable_dump_restart(n,ftn,wformat)
! \end{description}
!EOP
integer :: l,t
integer :: dimID(10)
integer :: dimID(11)
integer :: canstoId,rtsoilId, ssdnnId, snowdId,osnowdId
integer :: snageId,isflagId, wbtotId,wbiceId,tggsnId
integer :: ssdnId, smassId,albsoilsnId,wgId,tggId
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/clsm.f2.5/clsmf25_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ subroutine clsmf25_dump_restart(n, ftn, wformat)
!EOP
integer :: t,l
real, allocatable :: temp(:)
integer :: dimID(10)
integer :: dimID(11)
integer :: tc1Id, tc2Id, tc4Id, qa1Id, qa2Id, qa4Id
integer :: capacId, ghtId, wesnId, htsnId, sndzId
integer :: catdefId, rzexcId, srfexcId
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/hyssib/hyssib_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ subroutine hyssib_dump_restart(n, ftn,wformat)
!
!EOP
integer :: l
integer :: dimID(10)
integer :: dimID(11)
integer :: tcId, tgId, tsnId, tdId, wwwId, capacId, snowId, sgfgId, sdensId

call LIS_writeGlobalHeader_restart(ftn,n,LIS_rc%lsm_index,&
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/jules.5.0/jules50_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ subroutine jules50_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: tsoil_deep_ID
integer :: wood_prod_fast_ID
integer :: wood_prod_med_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/jules.5.1/jules51_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ subroutine jules51_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: tsoil_deep_ID
integer :: wood_prod_fast_ID
integer :: wood_prod_med_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/jules.5.2/jules52_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ subroutine jules52_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: tsoil_deep_ID
integer :: wood_prod_fast_ID
integer :: wood_prod_med_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/jules.5.3/jules53_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ subroutine jules53_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: tsoil_deep_ID
integer :: wood_prod_fast_ID
integer :: wood_prod_med_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/jules.5.4/jules54_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ subroutine jules54_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: tsoil_deep_ID
integer :: wood_prod_fast_ID
integer :: wood_prod_med_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/jules.5.x/jules5x_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ subroutine jules5x_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: tsoil_deep_ID
integer :: wood_prod_fast_ID
integer :: wood_prod_med_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/mosaic/mos_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ subroutine mos_dump_restart(ftn,n,wformat)
!EOP
integer :: l,t
integer :: ctId, qaId, icsId, snowId,SoTId,SoWETid
integer :: dimID(10)
integer :: dimID(11)
real, allocatable :: tmptilen(:)

allocate(tmptilen(LIS_rc%npatch(n,LIS_rc%lsm_index)))
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noah.2.7.1/noah271_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ subroutine noah271_dump_restart(n, ftn, wformat)
!
!EOP
integer :: l,t
integer :: dimID(10)
integer :: dimID(11)
integer :: t1Id, cmcid, snowhid, sneqvid, smcid, sh2oId, stcId
integer :: cmId, chId
real, allocatable :: tmptilen(:)
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noah.3.2/noah32_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ subroutine noah32_dump_restart(n, ftn, wformat)
!
!EOP
integer :: l,t
integer :: dimID(10)
integer :: dimID(11)
integer :: t1Id, cmcid, snowhid, sneqvid, smcid, sh2oId, stcId
integer :: cmId, chId,snotime1Id,emissId,z0Id,albId,q1Id
real, allocatable :: tmptilen(:)
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noah.3.3/noah33_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ subroutine noah33_dump_restart(n, ftn, wformat)
!
!EOP
integer :: l,t
integer :: dimID(10)
integer :: dimID(11)
integer :: t1Id, cmcid, snowhid, sneqvid, smcid, sh2oId, stcId
integer :: cmId, chId,snotime1Id,emissId,z0Id,albId,q1Id
real, allocatable :: tmptilen(:)
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noah.3.6/noah36_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ subroutine noah36_dump_restart(n, ftn, wformat)
!
!EOP
integer :: l,t
integer :: dimID(10)
integer :: dimID(11)
integer :: t1Id, cmcid, snowhid, sneqvid, smcid, sh2oId, stcId
integer :: cmId, chId,snotime1Id,emissId,z0Id,albId,q1Id
real, allocatable :: tmptilen(:)
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noah.3.9/noah39_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ subroutine noah39_dump_restart(n, ftn, wformat)
!
!EOP
integer :: l,t
integer :: dimID(10)
integer :: dimID(11)
integer :: t1Id, cmcid, snowhid, sneqvid, smcid, sh2oId, stcId
integer :: cmId, chId,snotime1Id,emissId,z0Id,albId,q1Id
integer :: xsda_qfx_Id
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noahmp.3.6/NoahMP36_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ subroutine NoahMP36_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: albold_ID
integer :: sneqvo_ID
integer :: sstc_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/noahmp.4.0.1/NoahMP401_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ subroutine NoahMP401_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: sfcrunoff_ID
integer :: udrrunoff_ID
integer :: smc_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/rdhm.3.5.6/RDHM356_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ subroutine RDHM356_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: UZTWC_ID
integer :: UZFWC_ID
integer :: LZTWC_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/ruc.3.7/RUC37_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ subroutine RUC37_dump_restart(n, ftn, wformat)

integer :: l, t
real :: tmptilen(LIS_rc%npatch(n, LIS_rc%lsm_index))
integer :: dimID(10)
integer :: dimID(11)
integer :: emiss_ID
integer :: ch_ID
integer :: cm_ID
Expand Down
2 changes: 1 addition & 1 deletion lis/surfacemodels/land/vic.4.1.2.l/vic412_writerst.F90
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ subroutine vic412_writerst(n)
integer, allocatable, dimension(:) :: vegclasses! added by Shugong Wang to support MPI-safe tile ID, 05/07/2012
integer :: t, chunk_size
real, allocatable :: state_chunk(:) ! chunk of state variable
integer :: state_chunk_ID, dimID(10)
integer :: state_chunk_ID, dimID(11)
integer :: ftn, l
real, allocatable :: tmptilen(:)
character*3 :: fnest
Expand Down

0 comments on commit 90b16ba

Please sign in to comment.