Skip to content

Commit cde6d3f

Browse files
committed
Merge branch 'dev/master' into dev/gfdl
2 parents 7f5b6d8 + ae22a0f commit cde6d3f

6 files changed

Lines changed: 1006 additions & 24 deletions

File tree

config_src/coupled_driver/ocean_model_MOM.F90

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ module ocean_model_mod
9292
public ocean_model_restart
9393
public ice_ocn_bnd_type_chksum
9494
public ocean_public_type_chksum
95-
public ocean_model_data_get
95+
public ocean_model_data_get
96+
public get_state_pointers
97+
9698
interface 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

10951097
end 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+
10971110
end module ocean_model_mod

0 commit comments

Comments
 (0)