Skip to content

Commit

Permalink
Update get_vec_from_config to use tableEnd for ESMF 8.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Nov 8, 2024
1 parent a07e438 commit f75769b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gridcomps/Cap/MAPL_CapGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1076,19 +1076,22 @@ function get_vec_from_config(config, key) result(vec)
integer :: status, rc
character(len=ESMF_MAXSTR) :: cap_import
type(StringVector) :: vec
logical :: tend

call ESMF_ConfigFindLabel(config, key//":", isPresent = present, rc = status)
_VERIFY(status)

cap_import = ""
tend = .false.
if (present) then

do while(trim(cap_import) /= "::")
call ESMF_ConfigNextLine(config, rc = status)
do while(.not. tend)
call ESMF_ConfigNextLine(config, tableEnd=tend, rc = status)
_VERIFY(status)
if (tend) exit
call ESMF_ConfigGetAttribute(config, cap_import, rc = status)
_VERIFY(status)
if (trim(cap_import) /= "::") call vec%push_back(trim(cap_import))
call vec%push_back(trim(cap_import))
end do
end if

Expand Down

0 comments on commit f75769b

Please sign in to comment.