@@ -34,6 +34,7 @@ module docn_datamode_som_mod
34
34
real (r8 ), pointer :: So_v(:) = > null ()
35
35
real (r8 ), pointer :: So_dhdx(:) = > null ()
36
36
real (r8 ), pointer :: So_dhdy(:) = > null ()
37
+ real (r8 ), pointer :: So_bldepth(:) = > null ()
37
38
real (r8 ), pointer :: Fioo_q(:) = > null ()
38
39
real (r8 ), pointer :: So_fswpen(:) = > null ()
39
40
@@ -98,6 +99,7 @@ subroutine docn_datamode_som_advertise(importState, exportState, fldsimport, fld
98
99
call dshr_fldList_add(fldsExport, ' So_v' )
99
100
call dshr_fldList_add(fldsExport, ' So_dhdx' )
100
101
call dshr_fldList_add(fldsExport, ' So_dhdy' )
102
+ call dshr_fldList_add(fldsExport, ' So_bldepth' )
101
103
call dshr_fldList_add(fldsExport, ' Fioo_q' )
102
104
call dshr_fldList_add(fldsExport, ' So_fswpen' )
103
105
@@ -189,6 +191,8 @@ subroutine docn_datamode_som_init_pointers(importState, exportState, sdat, ocn_f
189
191
if (chkerr(rc,__LINE__,u_FILE_u)) return
190
192
call dshr_state_getfldptr(exportState, ' So_dhdy' , fldptr1= So_dhdy , rc= rc)
191
193
if (chkerr(rc,__LINE__,u_FILE_u)) return
194
+ call dshr_state_getfldptr(exportState, ' So_bldepth' , fldptr1= So_bldepth , rc= rc)
195
+ if (chkerr(rc,__LINE__,u_FILE_u)) return
192
196
call dshr_state_getfldptr(exportState, ' Fioo_q' , fldptr1= Fioo_q , rc= rc)
193
197
if (chkerr(rc,__LINE__,u_FILE_u)) return
194
198
@@ -289,6 +293,7 @@ subroutine docn_datamode_som_advance(importState, exportState, clock, restart_re
289
293
290
294
! save somtp to restart file
291
295
somtp(n) = So_t(n)
296
+ So_bldepth(n) = strm_h(n)
292
297
endif
293
298
end do
294
299
deallocate (tfreeze)
0 commit comments