Skip to content

Commit

Permalink
Merge pull request #1125 from GEOS-ESM/arlindo-temp
Browse files Browse the repository at this point in the history
CI-Friendly version of #1123
  • Loading branch information
mathomp4 authored Oct 22, 2021
2 parents f48d150 + 7e7155d commit 72bec82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Exposed `TO_NAME` argument in `MAPL_StateAddExportSpecFrmChld()` to
allow renaming of EXPORTS. Needed for GOCART-2G.

### Changed

### Removed
Expand Down
11 changes: 8 additions & 3 deletions generic/MAPL_Generic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3374,20 +3374,23 @@ end subroutine MAPL_StateAddExportSpec_
! !IIROUTINE: MAPL_StateAddExportSpecFrmChld --- Add \texttt{EXPORT} spec from child

!INTERFACE:
subroutine MAPL_StateAddExportSpecFrmChld ( GC, SHORT_NAME, CHILD_ID, RC )
subroutine MAPL_StateAddExportSpecFrmChld ( GC, SHORT_NAME, CHILD_ID, RC, TO_NAME )

!ARGUMENTS:
type(ESMF_GridComp), intent(INOUT) :: GC
character (len=*) , intent(IN) :: SHORT_NAME
character (len=*) , intent(IN) :: SHORT_NAME ! NAME in CHILD
integer , intent(IN) :: CHILD_ID
integer , optional , intent(OUT) :: RC
character (len=*), optional, intent(IN) :: TO_NAME ! NAME to appear is EXPORT;
! default is SHORT_NAME
!EOPI

character(len=ESMF_MAXSTR), parameter :: IAm="MAPL_StateAddExportSpecFrmChld"
integer :: STATUS


call MAPL_AddConnectivityE2E ( GC, SHORT_NAME, &
TO_NAME = TO_NAME, &
SRC_ID = CHILD_ID, &
TO_EXPORT = MAPL_Self, RC=STATUS )
_VERIFY(STATUS)
Expand Down Expand Up @@ -4948,10 +4951,11 @@ subroutine MAPL_AddConnectivityOld ( GC, SHORT_NAME, TO_NAME, &
end subroutine MAPL_AddConnectivityOld

subroutine MAPL_AddConnectivityE2E ( GC, SHORT_NAME, &
SRC_ID, TO_EXPORT, RC )
SRC_ID, TO_EXPORT, TO_NAME, RC )

type(ESMF_GridComp), intent(INOUT) :: GC ! Gridded component
character (len=*), intent(IN ) :: SHORT_NAME
character (len=*), optional, intent(IN) :: TO_NAME !name in TO_EXPORT
integer, intent(IN ) :: SRC_ID !FROM_EXPORT
integer, intent(IN ) :: TO_EXPORT
integer, optional, intent( OUT) :: RC ! Error code:
Expand All @@ -4964,6 +4968,7 @@ subroutine MAPL_AddConnectivityE2E ( GC, SHORT_NAME, &
_VERIFY(STATUS)

call MAPL_VarConnCreate(CONN%CONNECT, SHORT_NAME, &
TO_NAME = TO_NAME, &
FROM_EXPORT=SRC_ID, &
TO_EXPORT=TO_EXPORT, RC=STATUS )
_VERIFY(STATUS)
Expand Down

0 comments on commit 72bec82

Please sign in to comment.