Skip to content

Commit 04785a5

Browse files
committed
Change default of USE_POROUS_BARRIER to false
1 parent 2943fa5 commit 04785a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/core/MOM.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
23122312
call get_param(param_file, "MOM", "USE_POROUS_BARRIER", CS%use_porbar, &
23132313
"If true, use porous barrier to constrain the widths "//&
23142314
"and face areas at the edges of the grid cells. ", &
2315-
default=.true.) ! The default should be false after tests.
2315+
default=.false.)
23162316
call get_param(param_file, "MOM", "BATHYMETRY_AT_VEL", bathy_at_vel, &
23172317
"If true, there are separate values for the basin depths "//&
23182318
"at velocity points. Otherwise the effects of topography "//&
@@ -2799,10 +2799,10 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
27992799
CS%time_in_cycle = 0.0 ; CS%time_in_thermo_cycle = 0.0
28002800

28012801
!allocate porous topography variables
2802-
allocate(CS%pbv%por_face_areaU(IsdB:IedB,jsd:jed,nz)) ; CS%pbv%por_face_areaU(:,:,:) = 1.0
2803-
allocate(CS%pbv%por_face_areaV(isd:ied,JsdB:JedB,nz)) ; CS%pbv%por_face_areaV(:,:,:) = 1.0
2804-
allocate(CS%pbv%por_layer_widthU(IsdB:IedB,jsd:jed,nz+1)) ; CS%pbv%por_layer_widthU(:,:,:) = 1.0
2805-
allocate(CS%pbv%por_layer_widthV(isd:ied,JsdB:JedB,nz+1)) ; CS%pbv%por_layer_widthV(:,:,:) = 1.0
2802+
allocate(CS%pbv%por_face_areaU(IsdB:IedB,jsd:jed,nz), source=1.0)
2803+
allocate(CS%pbv%por_face_areaV(isd:ied,JsdB:JedB,nz), source=1.0)
2804+
allocate(CS%pbv%por_layer_widthU(IsdB:IedB,jsd:jed,nz+1), source=1.0)
2805+
allocate(CS%pbv%por_layer_widthV(isd:ied,JsdB:JedB,nz+1), source=1.0)
28062806

28072807
! Use the Wright equation of state by default, unless otherwise specified
28082808
! Note: this line and the following block ought to be in a separate

src/core/MOM_variables.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ module MOM_variables
323323
end type BT_cont_type
324324

325325
!> Container for grids modifying cell metric at porous barriers
326-
! TODO: rename porous_barrier_type to porous_barrier_type
327326
type, public :: porous_barrier_type
328327
! Each of the following fields has nz layers.
329328
real, allocatable :: por_face_areaU(:,:,:) !< fractional open area of U-faces [nondim]

src/initialization/MOM_fixed_initialization.F90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ subroutine MOM_initialize_fixed(G, US, OBC, PF, write_geom, output_dir)
146146
endif
147147

148148
! Read sub-grid scale topography parameters at velocity points used for porous barrier calculation
149+
! TODO: The following routine call may eventually be merged as one of the CHANNEL_CONFIG options
149150
call get_param(PF, mdl, "SUBGRID_TOPO_AT_VEL", read_porous_file, &
150151
"If true, use variables from TOPO_AT_VEL_FILE as parameters for porous barrier.", &
151152
default=.False.)

0 commit comments

Comments
 (0)