Skip to content

Commit

Permalink
Fix OBC after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedstrom committed Jun 28, 2016
1 parent 2861388 commit ffb4aea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions src/core/MOM_open_boundary.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module MOM_open_boundary
use MOM_error_handler, only : MOM_mesg, MOM_error, FATAL, WARNING
use MOM_file_parser, only : get_param, log_version, param_file_type, log_param
use MOM_grid, only : ocean_grid_type
use MOM_dyn_horgrid, only : dyn_horgrid_type
use MOM_io, only : EAST_FACE, NORTH_FACE
use MOM_io, only : slasher, read_data
use MOM_tracer_registry, only : add_tracer_OBC_values, tracer_registry_type
Expand Down Expand Up @@ -112,7 +113,7 @@ module MOM_open_boundary

!> Enables OBC module and reads configuration parameters
subroutine open_boundary_config(G, param_file, OBC)
type(ocean_grid_type), intent(in) :: G !< Ocean grid structure
type(dyn_horgrid_type), intent(in) :: G !< Ocean grid structure
type(param_file_type), intent(in) :: param_file !< Parameter file handle
type(ocean_OBC_type), pointer :: OBC !< Open boundary control structure
! Local variables
Expand Down Expand Up @@ -164,9 +165,9 @@ end subroutine open_boundary_config

!> Initialize open boundary control structure
subroutine open_boundary_init(G, param_file, OBC)
type(ocean_grid_type), intent(in) :: G !< Ocean grid structure
type(param_file_type), intent(in) :: param_file !< Parameter file handle
type(ocean_OBC_type), pointer :: OBC !< Open boundary control structure
type(ocean_grid_type), intent(in) :: G !< Ocean grid structure
type(param_file_type), intent(in) :: param_file !< Parameter file handle
type(ocean_OBC_type), pointer :: OBC !< Open boundary control structure
! Local variables

if (.not.associated(OBC)) return
Expand Down Expand Up @@ -244,7 +245,7 @@ end subroutine open_boundary_end
!> Sets the slope of bathymetry normal to an open bounndary to zero.
subroutine open_boundary_impose_normal_slope(OBC, G, depth)
type(ocean_OBC_type), pointer :: OBC !< Open boundary control structure
type(ocean_grid_type), intent(in) :: G !< Ocean grid structure
type(dyn_horgrid_type), intent(in) :: G !< Ocean grid structure
real, dimension(SZI_(G),SZJ_(G)), intent(inout) :: depth !< Bathymetry at h-points
! Local variables
integer :: i, j
Expand All @@ -270,7 +271,7 @@ end subroutine open_boundary_impose_normal_slope
!> Reconcile masks and open boundaries, deallocate OBC on PEs where it is not needed
subroutine open_boundary_impose_land_mask(OBC, G)
type(ocean_OBC_type), pointer :: OBC !< Open boundary control structure
type(ocean_grid_type), intent(in) :: G !< Ocean grid structure
type(dyn_horgrid_type), intent(in) :: G !< Ocean grid structure
! Local variables
integer :: i, j
logical :: any_U, any_V
Expand Down Expand Up @@ -442,7 +443,7 @@ end subroutine Radiation_Open_Bdry_Conds
!> Sets the domain boundaries as Flather open boundaries using the original
!! Flather run-time logicals
subroutine set_Flather_positions(G, OBC)
type(ocean_grid_type), intent(inout) :: G
type(dyn_horgrid_type), intent(inout) :: G
type(ocean_OBC_type), pointer :: OBC
! Local variables
integer :: east_boundary, west_boundary, north_boundary, south_boundary
Expand Down
2 changes: 1 addition & 1 deletion src/user/DOME_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ end subroutine DOME_initialize_sponges

!> Set the positions of the open boundary needed for the DOME experiment.
subroutine DOME_set_OBC_positions(G, param_file, OBC)
type(ocean_grid_type), intent(in) :: G !< Grid structure.
type(dyn_horgrid_type), intent(in) :: G !< Grid structure.
type(param_file_type), intent(in) :: param_file !< Parameter file handle.
type(ocean_OBC_type), pointer :: OBC !< Open boundary control structure.
! Local variables
Expand Down
2 changes: 1 addition & 1 deletion src/user/user_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ end subroutine USER_initialize_sponges

!> This subroutine sets the location of open boundaries.
subroutine USER_set_OBC_positions(G, param_file, OBC)
type(ocean_grid_type), intent(in) :: G !< The ocean's grid structure.
type(dyn_horgrid_type), intent(in) :: G !< The ocean's grid structure.
type(param_file_type), intent(in) :: param_file !< A structure indicating the
!! open file to parse for model
!! parameter values.
Expand Down

0 comments on commit ffb4aea

Please sign in to comment.