Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructuring under GEOSocean_GridComp #448

Merged
merged 4 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions GEOSogcm_GridComp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ set (alldirs
GEOS_OceanBioGeoChemGridComp
GEOS_OradGridComp
GEOS_OradBioGridComp
GEOS_OceanGridComp
)

set (dependencies GuestOcean_GridComp GEOS_Seaice_GridComp MAPL CICE4)
set (dependencies GEOS_Seaice_GridComp MAPL CICE4)

esma_add_library (${this}
SRCS GEOS_OgcmGridComp.F90
SUBCOMPONENTS ${alldirs}
SUBDIRS GEOSseaice_GridComp GEOSocean_GridComp
SUBDIRS GEOSseaice_GridComp
DEPENDENCIES ${dependencies}
INCLUDES ${INC_ESMF})

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ esma_set_this ()

add_subdirectory(MOM6_GEOSPlug)
add_subdirectory(MOM_GEOS5PlugMod)
add_subdirectory(GEOSdatasea_GridComp)

esma_add_library (${this}
SRCS GuestOcean_GridComp.F90
SRCS GEOS_OceanGridComp.F90
DEPENDENCIES GEOSdatasea_GridComp MAPL
INCLUDES ${INC_ESMF})
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include "MAPL_Generic.h"

module GuestOcean_GridCompMod
module GEOS_OceanGridCompMod

!BOP
! !MODULE: GuestOcean_GridCompMod -- Implements ESMF wrapper to invoke the DATASEA/MIT/MOM ocean models.
! !MODULE: GEOS_OceanGridCompMod -- Implements ESMF wrapper to invoke the DATASEA/MIT/MOM ocean models.

! !USES:

Expand Down Expand Up @@ -1374,4 +1374,4 @@ subroutine Run ( gc, import, export, clock, rc )

end subroutine Run

end module GuestOcean_GridCompMod
end module GEOS_OceanGridCompMod
10 changes: 5 additions & 5 deletions GEOSogcm_GridComp/GEOS_OgcmGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module GEOS_OgcmGridCompMod
use GEOS_OradBioGridCompMod, only : OradBioSetServices => SetServices
use GEOS_OradGridCompMod, only : OradSetServices => SetServices

use GuestOcean_GridCompMod, only : GuestOceanSetServices => SetServices
use GEOS_OceanGridCompMod, only : OceanSetServices => SetServices
use GEOS_SeaIceGridCompMod, only : SeaIceSetServices => SetServices

implicit none
Expand All @@ -33,7 +33,7 @@ module GEOS_OgcmGridCompMod
!
! {\tt GEOS\_Ogcm} is a light-weight gridded component that implements the
! interface to the ogcm components. The ogcm computational components
! (MOMx/GuestOcean, CICEx/GEOS_Seaice, OceanRadiation, OceanBioGeochemistry, etc)
! (MOMx/Ocean, CICEx/GEOS_Seaice, OceanRadiation, OceanBioGeochemistry, etc)
! are its children.
! This component currently serves as an interface between the exchange
! grid and the ocean's grid. Its ``natural'' grid is the ocean part of the
Expand Down Expand Up @@ -181,7 +181,7 @@ subroutine SetServices ( GC, RC )
NUM_ICE_LAYERS = 1
endif

! this get resource is repeated in Guest - change both together!
! this get resource is repeated in Ocean - change both together!
call MAPL_GetResource ( MAPL, DO_DATASEAONLY, Label="USE_DATASEA:" , DEFAULT=1, RC=STATUS)
VERIFY_(STATUS)
call MAPL_GetResource ( MAPL, DO_DATAICE, Label="USE_DATASEAICE:" , DEFAULT=1, RC=STATUS)
Expand Down Expand Up @@ -232,7 +232,7 @@ subroutine SetServices ( GC, RC )
SEAICE = MAPL_AddChild(GC, NAME='SEAICE', SS=SeaIceSetServices, RC=STATUS)
VERIFY_(STATUS)

OCEAN = MAPL_AddChild(GC, NAME='OCEAN', SS=GuestOceanSetServices, RC=STATUS)
OCEAN = MAPL_AddChild(GC, NAME='OCEAN', SS=OceanSetServices, RC=STATUS)
VERIFY_(STATUS)

! Set the state variable specs.
Expand Down Expand Up @@ -2087,7 +2087,7 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
deallocate(CHLD)

else
! run explicitly the children excluding "real" seaice (ocean has the data part inside guest)
! run explicitly the children excluding "real" seaice (ocean has the data part inside ocean)
allocate(CHLD(4), stat=status)
VERIFY_(STATUS)
CHLD = (/OBIO,ORAD,SEAICE,OCEAN/)
Expand Down
7 changes: 0 additions & 7 deletions GEOSogcm_GridComp/GEOSocean_GridComp/CMakeLists.txt

This file was deleted.