Skip to content

Commit

Permalink
Fix bug and make sure melt potential is always <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Aug 6, 2018
1 parent c6b2534 commit d0bc3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_src/mct_driver/ocn_cap_methods.F90
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ subroutine ocn_export(ind, ocn_public, grid, o2x, dt_int, ncouple_per_day)
else
! Melt_potential: change from J/m^2 to W/m^2
o2x(ind%o2x_Fioo_q, n) = -ocn_public%melt_potential(ig,jg) * grid%mask2dT(i,j) * I_time_int !* ncouple_per_day
! reset melt_potential
ocn_public%melt_potential(ig,jg) = 0.0
! make sure Melt_potential is always <= 0
if (o2x(ind%o2x_Fioo_q, n) > 0.0) o2x(ind%o2x_Fioo_q, n) = 0.0
endif
! Make a copy of ssh in order to do a halo update. We use the usual MOM domain
! in order to update halos. i.e. does not use global indexing.
Expand Down

0 comments on commit d0bc3bc

Please sign in to comment.