Skip to content

Commit

Permalink
Fix the bug that Rayleigh_[uv] was not
Browse files Browse the repository at this point in the history
initialized in MOM_barotropic
  • Loading branch information
herrwang0 committed Feb 20, 2021
1 parent 45b3366 commit 8912b13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/MOM_barotropic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -948,11 +948,13 @@ subroutine btstep(U_in, V_in, eta_in, dt, bc_accel_u, bc_accel_v, forces, pbce,
do j=CS%jsdw,CS%jedw ; do I=CS%isdw-1,CS%iedw
Cor_ref_u(I,j) = 0.0 ; BT_force_u(I,j) = 0.0 ; ubt(I,j) = 0.0
Datu(I,j) = 0.0 ; bt_rem_u(I,j) = 0.0 ; uhbt0(I,j) = 0.0
Rayleigh_u(I,j) = 0.0
enddo ; enddo
!$OMP parallel do default(shared)
do J=CS%jsdw-1,CS%jedw ; do i=CS%isdw,CS%iedw
Cor_ref_v(i,J) = 0.0 ; BT_force_v(i,J) = 0.0 ; vbt(i,J) = 0.0
Datv(i,J) = 0.0 ; bt_rem_v(i,J) = 0.0 ; vhbt0(i,J) = 0.0
Rayleigh_v(i,J) = 0.0
enddo ; enddo

! Copy input arrays into their wide-halo counterparts.
Expand Down

0 comments on commit 8912b13

Please sign in to comment.