Skip to content

Commit

Permalink
Remove RediKappaScaling creation and initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-petersen committed Sep 25, 2023
1 parent fac4c9c commit 534209c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ module ocn_diagnostics_variables
real (kind=RKIND), dimension(:,:), pointer :: velocityZonal

real(kind=RKIND), dimension(:,:), pointer :: gmKappaScaling
real(kind=RKIND), dimension(:,:), pointer :: RediKappaScaling
real(kind=RKIND), dimension(:,:), pointer :: RediKappaSfcTaper
real(kind=RKIND), dimension(:,:), pointer :: k33
real(kind=RKIND), dimension(:,:), pointer :: gradDensityEddy
Expand Down Expand Up @@ -265,8 +264,6 @@ subroutine ocn_diagnostics_variables_init(domain, jenkinsOn, hollandJenkinsOn, e
if (config_use_GM.or.config_use_Redi) then
call mpas_pool_get_array(diagnosticsPool, 'RediKappa', &
RediKappa)
call mpas_pool_get_array(diagnosticsPool, 'RediKappaScaling', &
RediKappaScaling)
call mpas_pool_get_array(diagnosticsPool, 'RediKappaSfcTaper', &
RediKappaSfcTaper)
call mpas_pool_get_array(diagnosticsPool, 'rediLimiterCount', &
Expand Down Expand Up @@ -798,7 +795,6 @@ subroutine ocn_diagnostics_variables_init(domain, jenkinsOn, hollandJenkinsOn, e
!$acc RediKappa, &
!$acc gmBolusKappa, &
!$acc gmKappaScaling, &
!$acc RediKappaScaling, &
!$acc rediLimiterCount, &
!$acc RediKappaSfcTaper, &
!$acc RediHorizontalTaper, &
Expand Down Expand Up @@ -1042,7 +1038,6 @@ subroutine ocn_diagnostics_variables_destroy(err) !{{{
!$acc RediKappa, &
!$acc gmBolusKappa, &
!$acc gmKappaScaling, &
!$acc RediKappaScaling, &
!$acc rediLimiterCount, &
!$acc RediKappaSfcTaper, &
!$acc RediHorizontalTaper, &
Expand Down Expand Up @@ -1240,7 +1235,6 @@ subroutine ocn_diagnostics_variables_destroy(err) !{{{
nullify(RediKappa, &
gmBolusKappa, &
gmKappaScaling, &
RediKappaScaling, &
rediLimiterCount, &
RediKappaSfcTaper, &
RediHorizontalTaper, &
Expand Down
3 changes: 0 additions & 3 deletions components/mpas-ocean/src/shared/mpas_ocn_gm.F
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ subroutine ocn_GM_compute_Bolus_velocity(statePool, &
!$omp do schedule(runtime)
do iCell = 1, nCells
RediKappaScaling(:, iCell) = 1.0_RKIND
RediKappaSfcTaper(:, iCell) = 1.0_RKIND
end do
!$omp end do
Expand Down Expand Up @@ -379,8 +378,6 @@ subroutine ocn_GM_compute_Bolus_velocity(statePool, &
end do ! nEdgesOnCell(iCell)
! ! Normalize k33
RediKappaScaling(1:minLevelCell(iCell),iCell) = 0.0_RKIND
RediKappaScaling(maxLevelCell(iCell):nVertLevels,iCell) = 0.0_RKIND
do k = minLevelCell(iCell)+1, maxLevelCell(iCell)
k33(k, iCell) = k33(k, iCell)/k33Norm(k)
end do
Expand Down

0 comments on commit 534209c

Please sign in to comment.