Skip to content

Commit

Permalink
Added CallRestartvarDimOK() stub to unit_test_stubs/utils/restUtilMod…
Browse files Browse the repository at this point in the history
…_stub.F90.in.
  • Loading branch information
samsrabin committed Jun 26, 2023
1 parent 358802e commit 81efbe0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/unit_test_stubs/utils/restUtilMod_stub.F90.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,34 @@ contains

end subroutine set_missing_from_template

!-----------------------------------------------------------------------
logical function CallRestartvarDimOK (ncid, flag, dimname)
!
! !DESCRIPTION:
! Answer whether to call restartvar(), if necessary checking whether
! a dimension exists in the restart file
!
! BACKWARDS_COMPATIBILITY(wjs/ssr, 2022-02-02)
! Used in Restart(). Even though restartvar() can safely be called for a
! non-existent variable, it gives an error for a non-existent dimension, so
! check whether the dimension exists before trying to read. The need for this
! function arose because we recently added the mxsowings and mxharvests
! dimensions to the restart file.
!
! !USES:
use ncdio_pio
!
! !ARGUMENTS:
type(file_desc_t), intent(inout) :: ncid
character(len=*) , intent(in) :: flag
character(len=*) , intent(in) :: dimname
!
! !LOCAL VARIABLES:
!-----------------------------------------------------------------------

CallRestartvarDimOK = .false.

end function CallRestartvarDimOK


end module restUtilMod

0 comments on commit 81efbe0

Please sign in to comment.