Skip to content

Commit

Permalink
Merge branch 'ocean/develop' into e3sm/develop
Browse files Browse the repository at this point in the history
Widen Redi halo in hmix, correct OpenMP private variables #780
  • Loading branch information
mark-petersen committed Jan 11, 2021
2 parents 6e1f0ed + 9ea3ab6 commit ff3717e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core_ocean/shared/mpas_ocn_gm.F
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ subroutine ocn_GM_compute_Bolus_velocity(statePool, diagnosticsPool, &
integer, dimension(:, :), pointer :: cellsOnEdge, edgesOnCell
integer :: i, k, iEdge, cell1, cell2, iCell, N, iter, iCellSelf, maxLocation
real(kind=RKIND) :: h1, h2, areaEdge, c, BruntVaisalaFreqTopEdge, rtmp
real(kind=RKIND) :: kappaGMEdge, sumN2, countN2, maxN, kappaSum, ltSum
real(kind=RKIND) :: sumN2, countN2, maxN, kappaSum, ltSum
real(kind=RKIND) :: sumRi, RiTopOfEdge, zEdge, zMLD, sshEdge, sfcTaper
real(kind=RKIND) :: dcEdgeInv, drhoDx, drhoDT, drhoDS, dTdx, dSdx, BVFcent
real(kind=RKIND) :: slopeTaperUp, slopeTaperDown, sfcTaperUp, sfcTaperDown, invAreaCell
Expand Down Expand Up @@ -698,8 +698,8 @@ subroutine ocn_GM_compute_Bolus_velocity(statePool, diagnosticsPool, &

nEdges = nEdgesArray(3)
!!$omp parallel
!!$omp do schedule(runtime) private(cell1, cell2, k, gradDensityTopOfEdge, dzdxTopOfEdge, &
!!$omp gradDensityConstZTopOfEdge, kappaGMEdge, BruntVaisalaFreqTopEdge, N) &
!!$omp do schedule(runtime) private(cell1, cell2, k, &
!!$omp BruntVaisalaFreqTopEdge, N) &
!!$omp firstprivate(tridiagB, tridiagC, rightHandSide, tridiagA)
do iEdge = 1, nEdges
cell1 = cellsOnEdge(1, iEdge)
Expand Down
2 changes: 1 addition & 1 deletion src/core_ocean/shared/mpas_ocn_tracer_hmix_redi.F
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ subroutine ocn_tracer_hmix_Redi_tend(meshPool, layerThickness, layerThicknessEdg
!$omp end do
!$omp end parallel

nCells = nCellsArray(1)
nCells = nCellsArray(2)
nCellsP1 = nCellsArray(size(nCellsArray)) + 1

! Term 1: this is the "standard" horizontal del2 term, but with RediKappa coefficient.
Expand Down

0 comments on commit ff3717e

Please sign in to comment.