Skip to content

Commit

Permalink
Fix bugs part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Jan 22, 2024
1 parent 5e45e7f commit aead7e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions generic/MAPL_Generic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -5567,7 +5567,7 @@ subroutine MAPL_ESMFStateWriteToFile(STATE,CLOCK,FILENAME,FILETYPE,MPL,HDR, writ
character(LEN=*), intent(INout) :: FILETYPE
type(MAPL_MetaComp), intent(INOUT) :: MPL
logical, intent(IN ) :: HDR
logical, intent(IN ) :: write_with_server
logical, optional, intent(IN ) :: write_with_oserver
integer, optional, intent( OUT) :: RC

character(len=ESMF_MAXSTR), parameter :: IAm="MAPL_ESMFStateWriteToFile"
Expand Down Expand Up @@ -8333,7 +8333,7 @@ subroutine MAPL_GetResourceFromConfig_scalar(config, val, label, default, rc)
logical :: value_is_set

call MAPL_GetResource_config_scalar(config, val, label, value_is_set, default = default, rc = status)

if(.not. value_is_set) then
if (present(rc)) rc = ESMF_FAILURE
return
Expand All @@ -8356,15 +8356,15 @@ subroutine MAPL_GetResource_array(state, vals, label, default, rc)

logical :: value_is_set
integer :: status

call MAPL_GetResource_config_array(state%cf, vals, label, value_is_set, &
default = default, component_name = state%compname, rc = status)

if(.not. value_is_set) then
if (present(rc)) rc = ESMF_FAILURE
return
end if

_VERIFY(status)

_RETURN(_SUCCESS)
Expand Down

0 comments on commit aead7e1

Please sign in to comment.