Skip to content

Commit

Permalink
Merge pull request #90 from alperaltuntas/fix_oda
Browse files Browse the repository at this point in the history
apply oda tracer increments only if da is active
  • Loading branch information
gustavo-marques authored Jan 31, 2019
2 parents a68376b + cc7f725 commit 8228b64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,9 @@ subroutine step_MOM_thermo(CS, G, GV, u, v, h, tv, fluxes, dtdia, &

call enable_averaging(dtdia, Time_end_thermo, CS%diag)

call apply_oda_tracer_increments(dtdia,G,tv,h,CS%odaCS)
if (associated(CS%odaCS)) then
call apply_oda_tracer_increments(dtdia,G,tv,h,CS%odaCS)
endif

if (update_BBL) then
! Calculate the BBL properties and store them inside visc (u,h).
Expand Down

0 comments on commit 8228b64

Please sign in to comment.