Skip to content

Commit

Permalink
remove references to set_obc_external_thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
MJHarrison-GFDL committed Apr 6, 2017
1 parent 2331762 commit fdad03f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
5 changes: 1 addition & 4 deletions src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module MOM
! This file is part of MOM6. See LICENSE.md for the license.

use MOM_variables, only : vertvisc_type
use MOM_open_boundary, only : ocean_OBC_type, set_OBC_external_thickness
use MOM_open_boundary, only : ocean_OBC_type

! A Structure with pointers to forcing fields to drive MOM;
! all fluxes are positive downward.
Expand Down Expand Up @@ -527,9 +527,6 @@ subroutine step_MOM(fluxes, state, Time_start, time_interval, CS)
endif


if (associated(CS%OBC)) &
call set_OBC_external_thickness(CS%OBC, G, h)

showCallTree = callTree_showQuery()
if (showCallTree) call callTree_enter("step_MOM(), MOM.F90")

Expand Down
26 changes: 0 additions & 26 deletions src/core/MOM_open_boundary.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2174,32 +2174,6 @@ subroutine update_OBC_segment_data(G, GV, OBC, tv, h, Time)

end subroutine update_OBC_segment_data

subroutine set_OBC_external_thickness(OBC,G,h)
type(ocean_OBC_type) , intent(in) :: OBC
type(ocean_grid_type), intent(in) :: G
real, dimension(SZI_(G),SZJ_(G),SZK_(G)), intent(inout) :: h !< thickness at h-points
integer :: i, j, n
type(OBC_segment_type), pointer :: segment

do n=1,OBC%number_of_segments
segment=>OBC%segment(n)
if (.not. segment%on_pe) cycle
if (segment%direction == OBC_DIRECTION_E) then
i=segment%HI%IscB+1
h(i,segment%HI%jsd:segment%HI%jed,:)=h(i-1,segment%HI%jsd:segment%HI%jed,:)
else if (segment%direction == OBC_DIRECTION_W) then
i=segment%HI%IscB
h(i,segment%HI%jsd:segment%HI%jed,:)=h(i+1,segment%HI%jsd:segment%HI%jed,:)
else if (segment%direction == OBC_DIRECTION_N) then
j=segment%HI%JscB+1
h(segment%HI%isd:segment%HI%ied,j,:)=h(segment%HI%isd:segment%HI%ied,j-1,:)
else if (segment%direction == OBC_DIRECTION_S) then
j=segment%HI%JscB
h(segment%HI%isd:segment%HI%ied,j,:)=h(segment%HI%isd:segment%HI%ied,j+1,:)
endif
enddo

end subroutine set_OBC_external_thickness
!> \namespace mom_open_boundary
!! This module implements some aspects of internal open boundary
!! conditions in MOM.
Expand Down

0 comments on commit fdad03f

Please sign in to comment.