Skip to content

Commit

Permalink
Bug - indices are transposed
Browse files Browse the repository at this point in the history
  • Loading branch information
jskenigson authored Jun 15, 2021
1 parent 445b865 commit e551526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/MOM_stoch_eos.F90
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ subroutine MOM_calc_varT(G,Gv,h,tv,stoch_eos_CS)
! still a poor approximation in the interior when coordinates are strongly tilted.
if (.not. associated(tv%varT)) call safe_alloc_ptr(tv%varT, G%isd, G%ied, G%jsd, G%jed, GV%ke)
do k=1,G%ke
do j=G%isc,G%iec
do i=G%jsc,G%jec
do j=G%jsc,G%jec
do i=G%isc,G%iec
hl(1) = h(i,j,k) * G%mask2dT(i,j)
hl(2) = h(i-1,j,k) * G%mask2dCu(I-1,j)
hl(3) = h(i+1,j,k) * G%mask2dCu(I,j)
Expand Down

0 comments on commit e551526

Please sign in to comment.