Skip to content

Commit

Permalink
Merge pull request ESCOMP#349 from mnlevy1981/send_ndep_to_ocn
Browse files Browse the repository at this point in the history
Send nitrogen deposition from atm to ocn
  • Loading branch information
jedwards4b authored Apr 6, 2023
2 parents f191f85 + 805d252 commit b31366f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mediator/esmFldsExchange_cesm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,17 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
mrg_from=compatm, mrg_fld='Faxa_dstdry', mrg_type='copy_with_weights', mrg_fracname='ofrac')
end if
end if
if (phase == 'advertise') then
call addfld_to(compocn, 'Faxa_ndep')
call addfld_from(compatm, 'Faxa_ndep')
else
if ( fldchk(is_local%wrap%FBImp(compatm,compatm), 'Faxa_ndep', rc=rc) .and. &
fldchk(is_local%wrap%FBExp(compocn) , 'Faxa_ndep', rc=rc)) then
call addmap_from(compatm, 'Faxa_ndep', compocn, mapconsf, 'one', atm2ocn_map)
call addmrg_to(compocn, 'Faxa_ndep', &
mrg_from=compatm, mrg_fld='Faxa_ndep', mrg_type='copy')
end if
end if

! ---------------------------------------------------------------------
! to ocn: enthalpy from atm rain, snow, evaporation
Expand Down

0 comments on commit b31366f

Please sign in to comment.