Skip to content

Commit

Permalink
changed confusing dim on indexForReproSum, added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maltrud committed Jun 20, 2024
1 parent 62fcccf commit 7ca7088
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ subroutine ocn_get_surfaceSalinityData( streamManager, &
integer, parameter :: nSums = 2
real (kind=RKIND), dimension(nSums) :: reductions

integer, dimension(nSums) :: indexForReproSum
integer, dimension(2) :: indexForReproSum ! min, max indices for 1 dimensional sums
real (kind=RKIND), dimension(:,:), allocatable :: &
localArrayForReproSum

Expand Down Expand Up @@ -422,6 +422,9 @@ subroutine ocn_get_surfaceSalinityData( streamManager, &

endif

! For reproducible sums like mpas_global_sum_mod(), the range must be specified in min/max pairs for each array dimension.
! In this case, the array is getting packed in advance so the min is always 1 but the max can vary.
! Both need to be provided for the interface.
indexForReproSum(1) = 1
indexForReproSum(2) = 0
do iCell=1,nCellsSolve
Expand Down

0 comments on commit 7ca7088

Please sign in to comment.