@@ -79,7 +79,6 @@ module ocn_diagnostics
79
79
integer :: ke_cell_flag, ke_vertex_flag
80
80
real (kind= RKIND) :: fCoef
81
81
real (kind= RKIND) :: landIceTopDragCoeff
82
- real (kind= RKIND) :: rho_floatation
83
82
real (kind= RKIND), pointer :: coef_3rd_order
84
83
85
84
! Methods for computing thickness at edges for flux calculations
@@ -3679,7 +3678,8 @@ subroutine ocn_compute_land_ice_flux_input_fields(layerThickness, normalVelocity
3679
3678
3680
3679
integer :: iCell, iEdge, cell1, cell2, iLevel, i
3681
3680
3682
- real (kind= RKIND) :: blThickness, dz, weightSum, h_nu, Gamma_turb, landIceEdgeFraction, velocityMagnitude
3681
+ real (kind= RKIND) :: blThickness, dz, weightSum, h_nu, Gamma_turb, landIceEdgeFraction, &
3682
+ velocityMagnitude, rho_floatation
3683
3683
3684
3684
! Scratch Arrays
3685
3685
real (kind= RKIND), dimension (:), allocatable :: &
@@ -3705,6 +3705,8 @@ subroutine ocn_compute_land_ice_flux_input_fields(layerThickness, normalVelocity
3705
3705
3706
3706
elseif ( trim (config_land_ice_draft_mode) == " pressure-dependent" ) then
3707
3707
3708
+ rho_floatation = config_land_ice_rho_ocean
3709
+
3708
3710
#ifdef MPAS_OPENACC
3709
3711
!$acc parallel loop present (landIceDraftForSsh, landIcePressure)
3710
3712
#else
@@ -4693,8 +4695,6 @@ subroutine ocn_diagnostics_init(domain, err)!{{{
4693
4695
landIceTopDragCoeff = config_land_ice_flux_explicit_topDragCoeff
4694
4696
endif
4695
4697
4696
- rho_floatation = config_land_ice_rho_ocean
4697
-
4698
4698
if (trim(config_thickness_drag_type) == ' centered' ) then
4699
4699
thickEdgeDragChoice = thickEdgeDragCenter
4700
4700
elseif (trim(config_thickness_drag_type) == ' harmonic- mean' ) then
0 commit comments