Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added call to tracer_flow_control_end for cleanup. #475

Merged
merged 1 commit into from
Apr 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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