Skip to content

Commit

Permalink
Merge branch 'singhbalwinder/mosart/fix-undef-var-in-mosart-rtmmod' i…
Browse files Browse the repository at this point in the history
…nto next (PR #903)

This PR fixes an uninitialized variable in mosart's RtmMod.F90 file.
Note that similar bug was fixed in a file with the same name in rtm
component.

Fixes #902

[BFB]
  • Loading branch information
Gautam Bisht committed May 25, 2016
2 parents d0ffa2d + 6a2739a commit c9767d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/mosart/src/riverroute/RtmMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module RtmMod
logical :: do_rtm

character(len=256) :: nlfilename_rof = 'mosart_in'
real(r8), save :: delt_save ! previous delt
!
!EOP
!-----------------------------------------------------------------------
Expand Down Expand Up @@ -1372,6 +1373,7 @@ subroutine Rtmini(rtm_active,flood_active)

if (masterproc) write(iulog,*) subname,' done'
if (masterproc) call shr_sys_flush(iulog)
delt_save = 0.0

call t_stopf('mosarti_histinit')

Expand Down Expand Up @@ -1424,7 +1426,6 @@ subroutine Rtmrun(rstwr,nlend,rdate)
real(r8) :: delt ! delt associated with subcycling
real(r8) :: delt_coupling ! real value of coupling_period
integer , save :: nsub_save ! previous nsub
real(r8), save :: delt_save ! previous delt
logical , save :: first_call = .true. ! first time flag (for backwards compatibility)
character(len=256) :: filer ! restart file name
integer :: cnt ! counter for gridcells
Expand Down

0 comments on commit c9767d7

Please sign in to comment.