@@ -92,7 +92,9 @@ module ocean_model_mod
9292public ocean_model_restart
9393public ice_ocn_bnd_type_chksum
9494public ocean_public_type_chksum
95- public ocean_model_data_get
95+ public ocean_model_data_get
96+ public get_state_pointers
97+
9698interface ocean_model_data_get
9799 module procedure ocean_model_data1D_get
98100 module procedure ocean_model_data2D_get
@@ -1094,4 +1096,15 @@ subroutine ocean_public_type_chksum(id, timestep, ocn)
10941096
10951097end subroutine ocean_public_type_chksum
10961098
1099+ ! > Returns pointers to objects within ocean_state_type
1100+ subroutine get_state_pointers (OS , grid , surf )
1101+ type (ocean_state_type), pointer :: OS ! < Ocean state type
1102+ type (ocean_grid_type), optional , pointer :: grid ! < Ocean grid
1103+ type (surface), optional , pointer :: surf ! < Ocean surface state
1104+
1105+ if (present (grid)) grid = > OS% grid
1106+ if (present (surf)) surf= > OS% state
1107+
1108+ end subroutine get_state_pointers
1109+
10971110end module ocean_model_mod
0 commit comments