Skip to content

Commit

Permalink
Merge pull request ESCOMP#2 from mvertens/feature/sithick_to_wav
Browse files Browse the repository at this point in the history
Send sithick to mediator and then to ww3
  • Loading branch information
mvertens authored Aug 22, 2024
2 parents 3cbeab8 + 416ace6 commit 00f744f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
8 changes: 6 additions & 2 deletions cicecore/drivers/nuopc/cmeps/ice_comp_nuopc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
if (tfrz_option_driver /= tfrz_option) then
write(errmsg,'(a)') trim(subname)//'WARNING: tfrz_option from driver '//trim(tfrz_option_driver)//&
' is overwriting tfrz_option from cice namelist '//trim(tfrz_option)
write(nu_diag,*) trim(errmsg)
if (my_task == master_task) then
write(nu_diag,*) trim(errmsg)
end if
call icepack_warnings_flush(nu_diag)
call icepack_init_parameters(tfrz_option_in=tfrz_option_driver)
endif
Expand All @@ -613,7 +615,9 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
if (atmiter_conv_driver /= atmiter_conv) then
write(errmsg,'(a,d13.5,a,d13.5)') trim(subname)//'WARNING: atmiter_ from driver ',&
atmiter_conv_driver,' is overwritting atmiter_conv from cice namelist ',atmiter_conv
write(nu_diag,*) trim(errmsg)
if (my_task == master_task) then
write(nu_diag,*) trim(errmsg)
end if
call icepack_warnings_flush(nu_diag)
call icepack_init_parameters(atmiter_conv_in=atmiter_conv_driver)
end if
Expand Down
16 changes: 8 additions & 8 deletions cicecore/drivers/nuopc/cmeps/ice_import_export.F90
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ subroutine ice_advertise_fields(gcomp, importState, exportState, flds_scalar_nam
! ice states
call fldlist_add(fldsFrIce_num, fldsFrIce, 'ice_mask' )
call fldlist_add(fldsFrIce_num, fldsFrIce, 'ice_fraction' )
call fldlist_add(fldsFrIce_num, fldsFrIce, 'Si_thick' )
call fldlist_add(fldsFrIce_num, fldsFrIce, 'sea_ice_surface_temperature' )
call fldlist_add(fldsFrIce_num, fldsFrIce, 'mean_ice_volume' )
call fldlist_add(fldsFrIce_num, fldsFrIce, 'mean_snow_volume' )
Expand All @@ -250,7 +251,6 @@ subroutine ice_advertise_fields(gcomp, importState, exportState, flds_scalar_nam
ungridded_lbound=1, ungridded_ubound=ncat)
end if
if (flds_wave) then
call fldlist_add(fldsFrIce_num, fldsFrIce, 'Si_thick' )
call fldlist_add(fldsFrIce_num, fldsFrIce, 'Si_floediam' )
end if

Expand Down Expand Up @@ -970,14 +970,14 @@ subroutine ice_export( exportState, rc )
! surface temperature
Tsrf(i,j,iblk) = Tffresh + trcr(i,j,1,iblk) !Kelvin (original ???)

if (tr_fsd) then
! floe thickness (m)
if (aice(i,j,iblk) > puny) then
floethick(i,j,iblk) = vice(i,j,iblk) / aice(i,j,iblk)
else
floethick(i,j,iblk) = c0
end if
! floe thickness (m)
if (aice(i,j,iblk) > puny) then
floethick(i,j,iblk) = vice(i,j,iblk) / aice(i,j,iblk)
else
floethick(i,j,iblk) = c0
end if

if (tr_fsd) then
! floe diameter (m)
workx = c0
worky = c0
Expand Down

0 comments on commit 00f744f

Please sign in to comment.