Skip to content

Commit

Permalink
Added call to tracer_flow_control_end for cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedstrom committed Apr 22, 2017
1 parent c34bc23 commit 6ae82c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ module MOM
use MOM_tracer_registry, only : lock_tracer_registry, tracer_registry_end
use MOM_tracer_flow_control, only : call_tracer_register, tracer_flow_control_CS
use MOM_tracer_flow_control, only : tracer_flow_control_init, call_tracer_surface_state
use MOM_tracer_flow_control, only : tracer_flow_control_end
use MOM_transcribe_grid, only : copy_dyngrid_to_MOM_grid, copy_MOM_grid_to_dyngrid
use MOM_vert_friction, only : vertvisc, vertvisc_remnant
use MOM_vert_friction, only : vertvisc_limit_vel, vertvisc_init
Expand Down Expand Up @@ -3643,6 +3644,7 @@ subroutine MOM_end(CS)
call tracer_advect_end(CS%tracer_adv_CSp)
call tracer_hor_diff_end(CS%tracer_diff_CSp)
call tracer_registry_end(CS%tracer_Reg)
call tracer_flow_control_end(CS%tracer_flow_CSp)

DEALLOC_(CS%uhtr) ; DEALLOC_(CS%vhtr)
if (CS%split) then ; if (CS%legacy_split) then
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/MOM_tracer_flow_control.F90
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module MOM_tracer_flow_control

public call_tracer_register, tracer_flow_control_init, call_tracer_set_forcing
public call_tracer_column_fns, call_tracer_surface_state, call_tracer_stocks
public get_chl_from_model
public get_chl_from_model, tracer_flow_control_end

type, public :: tracer_flow_control_CS ; private
logical :: use_USER_tracer_example = .false.
Expand Down

0 comments on commit 6ae82c0

Please sign in to comment.