Skip to content

Commit

Permalink
apply oda tracer increments only if da is active
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Jan 31, 2019
1 parent 10fb249 commit cc7f725
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 cc7f725

Please sign in to comment.