Skip to content

Commit

Permalink
Merge pull request #285 from dabail10/somwav
Browse files Browse the repository at this point in the history
Add changes to exchange between SOM and WW3DEV
  • Loading branch information
jedwards4b authored Jun 26, 2024
2 parents 0b2b30c + 54e7483 commit ab7df9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docn/docn_datamode_som_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module docn_datamode_som_mod
real(r8), pointer :: So_v(:) => null()
real(r8), pointer :: So_dhdx(:) => null()
real(r8), pointer :: So_dhdy(:) => null()
real(r8), pointer :: So_bldepth(:) => null()
real(r8), pointer :: Fioo_q(:) => null()
real(r8), pointer :: So_fswpen(:) => null()

Expand Down Expand Up @@ -98,6 +99,7 @@ subroutine docn_datamode_som_advertise(importState, exportState, fldsimport, fld
call dshr_fldList_add(fldsExport, 'So_v' )
call dshr_fldList_add(fldsExport, 'So_dhdx' )
call dshr_fldList_add(fldsExport, 'So_dhdy' )
call dshr_fldList_add(fldsExport, 'So_bldepth' )
call dshr_fldList_add(fldsExport, 'Fioo_q' )
call dshr_fldList_add(fldsExport, 'So_fswpen' )

Expand Down Expand Up @@ -189,6 +191,8 @@ subroutine docn_datamode_som_init_pointers(importState, exportState, sdat, ocn_f
if (chkerr(rc,__LINE__,u_FILE_u)) return
call dshr_state_getfldptr(exportState, 'So_dhdy' , fldptr1=So_dhdy , rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
call dshr_state_getfldptr(exportState, 'So_bldepth' , fldptr1=So_bldepth , rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
call dshr_state_getfldptr(exportState, 'Fioo_q' , fldptr1=Fioo_q , rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

Expand Down Expand Up @@ -289,6 +293,7 @@ subroutine docn_datamode_som_advance(importState, exportState, clock, restart_re

! save somtp to restart file
somtp(n) = So_t(n)
So_bldepth(n) = strm_h(n)
endif
end do
deallocate(tfreeze)
Expand Down

0 comments on commit ab7df9f

Please sign in to comment.