Skip to content

Commit

Permalink
Merge branch 'hotfix/NOAA-EMC#301-exportdata' into feature/gocart-int…
Browse files Browse the repository at this point in the history
…egration
  • Loading branch information
rmontuoro committed May 23, 2021
2 parents 6b0ef7e + c75cb0a commit fd0e4ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions atmos_model.F90
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ subroutine update_atmos_model_state (Atmos, rc)
type (atmos_data_type), intent(inout) :: Atmos
integer, optional, intent(out) :: rc
!--- local variables
integer :: localrc
integer :: isec, seconds, isec_fhzero
real(kind=GFS_kind_phys) :: time_int, time_intfull
!
Expand Down Expand Up @@ -834,9 +835,9 @@ subroutine update_atmos_model_state (Atmos, rc)

!if in coupled mode, set up coupled fields
if (.not. GFS_control%cplchm) then
call setup_exportdata(rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, file=__FILE__)) return
call setup_exportdata(rc=localrc)
if (ESMF_LogFoundError(rcToCheck=localrc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, file=__FILE__, rcToReturn=rc)) return
endif

end subroutine update_atmos_model_state
Expand Down Expand Up @@ -2360,7 +2361,7 @@ subroutine setup_exportdata(rc)
call ESMF_FieldGet(exportFields(n),farrayPtr=datar82d,localDE=0, rc=localrc)
if (ESMF_LogFoundError(rcToCheck=localrc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__, rcToReturn=rc)) return
case (3)
call ESMF_FieldGet(exportFields(n),farrayPtr=datar82d,localDE=0, rc=localrc)
call ESMF_FieldGet(exportFields(n),farrayPtr=datar83d,localDE=0, rc=localrc)
if (ESMF_LogFoundError(rcToCheck=localrc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__, rcToReturn=rc)) return
case default
!--- skip field
Expand Down
3 changes: 2 additions & 1 deletion module_fcst_grid_comp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,8 @@ subroutine fcst_run_phase_2(fcst_comp, importState, exportState,clock,rc)
call atmos_model_exchange_phase_2 (atm_int_state%Atm, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return

call update_atmos_model_state (atm_int_state%Atm)
call update_atmos_model_state (atm_int_state%Atm, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return

!--- intermediate restart
if (atm_int_state%intrm_rst>0) then
Expand Down

0 comments on commit fd0e4ef

Please sign in to comment.