@@ -64,9 +64,6 @@ module MOM_continuity_PPM
64
64
! ! continuity solver for use as the weights in the
65
65
! ! barotropic solver. Otherwise use the transport
66
66
! ! averaged areas.
67
- logical :: visc_rem_hvel_fix = .False. ! < If true, thickness at velocity points
68
- ! ! h_[uv] (used by barotropic solver) is not multiplied
69
- ! ! by visc_rem_[uv].
70
67
end type continuity_PPM_CS
71
68
72
69
! > A container for loop bounds
@@ -809,22 +806,12 @@ subroutine zonal_mass_flux(u, h_in, h_W, h_E, uh, dt, G, GV, US, CS, OBC, por_fa
809
806
endif
810
807
811
808
if (set_BT_cont) then ; if (allocated (BT_cont% h_u)) then
812
- if (CS% visc_rem_hvel_fix) then
813
- if (present (u_cor)) then
814
- call zonal_flux_thickness(u_cor, h_in, h_W, h_E, BT_cont% h_u, dt, G, GV, US, LB, &
815
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaU)
816
- else
817
- call zonal_flux_thickness(u, h_in, h_W, h_E, BT_cont% h_u, dt, G, GV, US, LB, &
818
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaU)
819
- endif
809
+ if (present (u_cor)) then
810
+ call zonal_flux_thickness(u_cor, h_in, h_W, h_E, BT_cont% h_u, dt, G, GV, US, LB, &
811
+ CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaU, visc_rem_u)
820
812
else
821
- if (present (u_cor)) then
822
- call zonal_flux_thickness(u_cor, h_in, h_W, h_E, BT_cont% h_u, dt, G, GV, US, LB, &
823
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaU, visc_rem_u)
824
- else
825
- call zonal_flux_thickness(u, h_in, h_W, h_E, BT_cont% h_u, dt, G, GV, US, LB, &
826
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaU, visc_rem_u)
827
- endif
813
+ call zonal_flux_thickness(u, h_in, h_W, h_E, BT_cont% h_u, dt, G, GV, US, LB, &
814
+ CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaU, visc_rem_u)
828
815
endif
829
816
endif ; endif
830
817
@@ -1709,22 +1696,12 @@ subroutine meridional_mass_flux(v, h_in, h_S, h_N, vh, dt, G, GV, US, CS, OBC, p
1709
1696
endif
1710
1697
1711
1698
if (set_BT_cont) then ; if (allocated (BT_cont% h_v)) then
1712
- if (CS% visc_rem_hvel_fix) then
1713
- if (present (v_cor)) then
1714
- call meridional_flux_thickness(v_cor, h_in, h_S, h_N, BT_cont% h_v, dt, G, GV, US, LB, &
1715
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaV)
1716
- else
1717
- call meridional_flux_thickness(v, h_in, h_S, h_N, BT_cont% h_v, dt, G, GV, US, LB, &
1718
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaV)
1719
- endif
1699
+ if (present (v_cor)) then
1700
+ call meridional_flux_thickness(v_cor, h_in, h_S, h_N, BT_cont% h_v, dt, G, GV, US, LB, &
1701
+ CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaV, visc_rem_v)
1720
1702
else
1721
- if (present (v_cor)) then
1722
- call meridional_flux_thickness(v_cor, h_in, h_S, h_N, BT_cont% h_v, dt, G, GV, US, LB, &
1723
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaV, visc_rem_v)
1724
- else
1725
- call meridional_flux_thickness(v, h_in, h_S, h_N, BT_cont% h_v, dt, G, GV, US, LB, &
1726
- CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaV, visc_rem_v)
1727
- endif
1703
+ call meridional_flux_thickness(v, h_in, h_S, h_N, BT_cont% h_v, dt, G, GV, US, LB, &
1704
+ CS% vol_CFL, CS% marginal_faces, OBC, por_face_areaV, visc_rem_v)
1728
1705
endif
1729
1706
endif ; endif
1730
1707
@@ -2713,7 +2690,6 @@ subroutine continuity_PPM_init(Time, G, GV, US, param_file, diag, CS)
2713
2690
! > This include declares and sets the variable "version".
2714
2691
# include " version_variable.h"
2715
2692
character (len= 40 ) :: mdl = " MOM_continuity_PPM" ! This module's name.
2716
- logical :: visc_rem_bug ! Stores the value of runtime paramter VISC_REM_BUG.
2717
2693
2718
2694
CS% initialized = .true.
2719
2695
@@ -2774,11 +2750,6 @@ subroutine continuity_PPM_init(Time, G, GV, US, param_file, diag, CS)
2774
2750
" If true, use the marginal face areas from the continuity " // &
2775
2751
" solver for use as the weights in the barotropic solver. " // &
2776
2752
" Otherwise use the transport averaged areas." , default= .true. )
2777
- call get_param(param_file, mdl, " VISC_REM_BUG" , visc_rem_bug, default= .true. , do_not_log= .true. )
2778
- call get_param(param_file, mdl, " VISC_REM_CONT_HVEL_FIX" , CS% visc_rem_hvel_fix, &
2779
- " If true, velocity cell thickness h_[uv] from the continuity solver " // &
2780
- " is not multiplied by visc_rem_[uv]. Default of this flag is set by " // &
2781
- " VISC_REM_BUG." , default= .False. ) ! , default=.not.visc_rem_bug)
2782
2753
CS% diag = > diag
2783
2754
2784
2755
id_clock_reconstruct = cpu_clock_id(' (Ocean continuity reconstruction)' , grain= CLOCK_ROUTINE)
0 commit comments