Skip to content

Commit

Permalink
Removed call to diag_manager_end()
Browse files Browse the repository at this point in the history
- diag_manager_end() is meant to be called from the driver level.
  In the case of coupled and ice-ocean models, the driver is the
  coupler.
- This will allow 3440869 to be
  applied, "Add diag_mediator_end() to close open files.".
  • Loading branch information
adcroft committed May 5, 2015
1 parent 66d58c3 commit 16d0be6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SIS_diag_mediator.F90
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module SIS_diag_mediator
use MOM_string_functions, only : lowercase
use MOM_time_manager, only : time_type

use diag_manager_mod, only : diag_manager_init, diag_manager_end
use diag_manager_mod, only : diag_manager_init
use diag_manager_mod, only : send_data, diag_axis_init
use diag_manager_mod, only : register_diag_field_fms=>register_diag_field
use diag_manager_mod, only : register_static_field_fms=>register_static_field
Expand Down Expand Up @@ -809,8 +809,6 @@ end subroutine SIS_diag_mediator_close_registration
subroutine SIS_diag_mediator_end(time)
type(time_type), intent(in) :: time

call diag_manager_end(time)

if (doc_unit > -1) then
close(doc_unit) ; doc_unit = -3
endif
Expand Down

0 comments on commit 16d0be6

Please sign in to comment.