Skip to content

Commit bb676e3

Browse files
committed
MAPL_StateAdd is not yet available, switched to ESMF_StateAdd
1 parent 869a3d7 commit bb676e3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module GOCART2G_GridCompMod
1818
use mapl3g_RestartModes, only: MAPL_RESTART_SKIP
1919
use mapl3g_VerticalStaggerLoc, only: VERTICAL_STAGGER_NONE, VERTICAL_STAGGER_CENTER, VERTICAL_STAGGER_EDGE
2020
use mapl3g_FieldBundle_API, only: MAPL_FieldBundleAdd
21-
use mapl3g_State_API, only: MAPL_StateGetPointer, MAPL_StateAdd
21+
use mapl3g_State_API, only: MAPL_StateGetPointer
2222
use mapl3g_Geom_API, only: MAPL_GridGet
2323
use mapl3g_UngriddedDim, only: UngriddedDim
2424
use pflogger, only: logger_t => logger
@@ -1213,7 +1213,7 @@ subroutine serialize_bundle(state, rc)
12131213

12141214
! Create empty ESMF_FieldBundle to add Children's aerosol fields to
12151215
bundle = ESMF_FieldBundleCreate(name="serialized_aerosolBundle", _RC)
1216-
call MAPL_StateAdd(state, [bundle], _RC)
1216+
call ESMF_StateAdd(state, [bundle], _RC)
12171217

12181218
do i = 1, n
12191219
if (itemTypes(i) /= ESMF_STATEITEM_STATE) cycle ! exclude non-states

ESMF/Shared/Chem_AeroGeneric.F90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module Chem_AeroGeneric
1616
use mapl3g_Field_API, only: MAPL_FieldGet, MAPL_FieldCreate
1717
use mapl3g_FieldInfo, only: FieldInfoSetInternal
1818
use mapl3g_FieldBundle_API, only: MAPL_FieldBundleAdd
19-
use mapl3g_State_API, only: MAPL_StateAdd
2019
use mapl3g_VerticalStaggerLoc, only: VerticalStaggerLoc, VERTICAL_STAGGER_EDGE, VERTICAL_STAGGER_CENTER
2120
use mapl3g_UngriddedDims, only: UngriddedDims
2221
! USE Chem_MieMod2G
@@ -87,12 +86,12 @@ subroutine add_aero(state, label, label2, geom, km, typekind, ptr, rc)
8786
num_levels=km, &
8887
vert_staggerloc=VERTICAL_STAGGER_CENTER, _RC)
8988
end if
90-
call MAPL_StateAdd(state, [field], _RC)
89+
call ESMF_StateAdd(state, [field], _RC)
9190
end if
9291

9392
! if (field_name /= "") then
9493
! field = ptr
95-
! call MAPL_StateAdd(state, [field], _RC)
94+
! call ESMF_StateAdd(state, [field], _RC)
9695
! end if
9796

9897
_RETURN(_SUCCESS)

0 commit comments

Comments
 (0)