Skip to content

Commit cd26054

Browse files
committed
Move rho_floatation from module to local variable
1 parent b0e2848 commit cd26054

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/mpas-ocean/src/shared/mpas_ocn_diagnostics.F

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ module ocn_diagnostics
7979
integer :: ke_cell_flag, ke_vertex_flag
8080
real (kind=RKIND) :: fCoef
8181
real (kind=RKIND) :: landIceTopDragCoeff
82-
real (kind=RKIND) :: rho_floatation
8382
real (kind=RKIND), pointer :: coef_3rd_order
8483

8584
! Methods for computing thickness at edges for flux calculations
@@ -3679,7 +3678,8 @@ subroutine ocn_compute_land_ice_flux_input_fields(layerThickness, normalVelocity
36793678

36803679
integer :: iCell, iEdge, cell1, cell2, iLevel, i
36813680

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
36833683

36843684
! Scratch Arrays
36853685
real (kind=RKIND), dimension(:), allocatable :: &
@@ -3705,6 +3705,8 @@ subroutine ocn_compute_land_ice_flux_input_fields(layerThickness, normalVelocity
37053705

37063706
elseif ( trim(config_land_ice_draft_mode) == "pressure-dependent" ) then
37073707

3708+
rho_floatation = config_land_ice_rho_ocean
3709+
37083710
#ifdef MPAS_OPENACC
37093711
!$acc parallel loop present(landIceDraftForSsh, landIcePressure)
37103712
#else
@@ -4693,8 +4695,6 @@ subroutine ocn_diagnostics_init(domain, err)!{{{
46934695
landIceTopDragCoeff = config_land_ice_flux_explicit_topDragCoeff
46944696
endif
46954697
4696-
rho_floatation = config_land_ice_rho_ocean
4697-
46984698
if (trim(config_thickness_drag_type) == 'centered') then
46994699
thickEdgeDragChoice = thickEdgeDragCenter
47004700
elseif (trim(config_thickness_drag_type) == 'harmonic-mean') then

0 commit comments

Comments
 (0)