Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add changes to exchange between SOM and WW3DEV #285

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading