Skip to content

Commit

Permalink
set lamult to 1 below ice
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Jul 9, 2021
1 parent 5f756ab commit 7d85ab2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config_src/drivers/nuopc_cap/mom_surface_forcing_nuopc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,11 @@ subroutine convert_IOB_to_forces(IOB, forces, index_bounds, Time, G, US, CS)
! wave to ocean coupling
if ( associated(IOB%lamult)) then
do j=js,je; do i=is,ie
forces%lamult(i,j) = IOB%lamult(i-i0,j-j0)
if (IOB%ice_fraction(i-i0,j-j0) <= 0.05 ) then
forces%lamult(i,j) = IOB%lamult(i-i0,j-j0)
else
forces%lamult(i,j) = 1.0
endif
enddo ; enddo
call pass_var(forces%lamult, G%domain, halo=1 )
endif
Expand Down

0 comments on commit 7d85ab2

Please sign in to comment.