Skip to content

Commit ae3c6ff

Browse files
authored
Merge branch 'main' into feature/init_dglc_pointers
2 parents b320caa + ab7df9f commit ae3c6ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: docn/docn_datamode_som_mod.F90

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module docn_datamode_som_mod
3434
real(r8), pointer :: So_v(:) => null()
3535
real(r8), pointer :: So_dhdx(:) => null()
3636
real(r8), pointer :: So_dhdy(:) => null()
37+
real(r8), pointer :: So_bldepth(:) => null()
3738
real(r8), pointer :: Fioo_q(:) => null()
3839
real(r8), pointer :: So_fswpen(:) => null()
3940

@@ -98,6 +99,7 @@ subroutine docn_datamode_som_advertise(importState, exportState, fldsimport, fld
9899
call dshr_fldList_add(fldsExport, 'So_v' )
99100
call dshr_fldList_add(fldsExport, 'So_dhdx' )
100101
call dshr_fldList_add(fldsExport, 'So_dhdy' )
102+
call dshr_fldList_add(fldsExport, 'So_bldepth' )
101103
call dshr_fldList_add(fldsExport, 'Fioo_q' )
102104
call dshr_fldList_add(fldsExport, 'So_fswpen' )
103105

@@ -189,6 +191,8 @@ subroutine docn_datamode_som_init_pointers(importState, exportState, sdat, ocn_f
189191
if (chkerr(rc,__LINE__,u_FILE_u)) return
190192
call dshr_state_getfldptr(exportState, 'So_dhdy' , fldptr1=So_dhdy , rc=rc)
191193
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
192196
call dshr_state_getfldptr(exportState, 'Fioo_q' , fldptr1=Fioo_q , rc=rc)
193197
if (chkerr(rc,__LINE__,u_FILE_u)) return
194198

@@ -289,6 +293,7 @@ subroutine docn_datamode_som_advance(importState, exportState, clock, restart_re
289293

290294
! save somtp to restart file
291295
somtp(n) = So_t(n)
296+
So_bldepth(n) = strm_h(n)
292297
endif
293298
end do
294299
deallocate(tfreeze)

0 commit comments

Comments
 (0)