Skip to content

Commit 95a72c4

Browse files
authored
MAPL_Generic - added argument service_items (#4677)
This is to support adding a MAPL_STATEITEM_SERVICE spec
1 parent 98edc0b commit 95a72c4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

generic3g/MAPL_Generic.F90

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module mapl3g_Generic
3333
use mapl3g_HorizontalDimsSpec, only: HorizontalDimsSpec, HORIZONTAL_DIMS_NONE, HORIZONTAL_DIMS_GEOM
3434
use mapl3g_UngriddedDim, only: UngriddedDim
3535
use mapl3g_UngriddedDims, only: UngriddedDims
36-
use mapl3g_StateItem, only: MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE
36+
use mapl3g_StateItem, only: MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE, MAPL_STATEITEM_SERVICE
3737
use mapl3g_ESMF_Utilities, only: esmf_state_intent_to_string
3838
use mapl3g_ESMF_Interfaces, only: MAPL_UserCompGetInternalState, MAPL_UserCompSetInternalState
3939
use mapl3g_hconfig_get
@@ -56,6 +56,7 @@ module mapl3g_Generic
5656
use esmf, only: ESMF_State, ESMF_StateItem_Flag, ESMF_TypeKind_Flag
5757
use esmf, only: operator(==)
5858
use pflogger, only: logger_t => logger
59+
use gftl2_StringVector, only: StringVector
5960

6061
implicit none(type,external)
6162
private
@@ -107,7 +108,7 @@ module mapl3g_Generic
107108
public :: MAPL_GridCompTimerStop
108109

109110
! Spec types
110-
public :: MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE
111+
public :: MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE, MAPL_STATEITEM_SERVICE
111112

112113
public :: MAPL_UserCompGetInternalState, MAPL_UserCompSetInternalState
113114

@@ -557,6 +558,7 @@ subroutine gridcomp_add_spec( &
557558
default_value, &
558559
export_name, &
559560
has_deferred_aspects, &
561+
service_items, &
560562
rc)
561563
type(ESMF_GridComp), intent(inout) :: gridcomp
562564
type(ESMF_StateIntent_Flag), intent(in) :: state_intent
@@ -575,6 +577,7 @@ subroutine gridcomp_add_spec( &
575577
real, optional, intent(in) :: default_value
576578
character(*), optional, intent(in) :: export_name
577579
logical, optional, intent(in) :: has_deferred_aspects
580+
type(StringVector), optional, intent(in) :: service_items
578581
integer, optional, intent(out) :: rc
579582

580583
type(VariableSpec) :: var_spec
@@ -606,6 +609,7 @@ subroutine gridcomp_add_spec( &
606609
horizontal_dims_spec=horizontal_dims_spec, &
607610
default_value=default_value, &
608611
has_deferred_aspects=has_deferred_aspects, &
612+
service_items=service_items, &
609613
restart_mode=restart, &
610614
_RC)
611615
call MAPL_GridCompGetOuterMeta(gridcomp, outer_meta, _RC)

0 commit comments

Comments
 (0)