Skip to content

Commit

Permalink
Initialize domore_u, domore_v variables. Closes mom-ocean#22
Browse files Browse the repository at this point in the history
  • Loading branch information
nichannah committed Aug 3, 2015
1 parent c03b532 commit f934010
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions SIS_tracer_advect.F90
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,21 @@ subroutine advect_scalar(scalar, h_prev, h_end, uhtr, vhtr, dt, G, CS) ! (, OBC)
!$OMP do
do k=1,ncat
domore_k(k)=1
! Put the remaining (total) thickness fluxes into uhr and vhr.
do j=js,je ; do I=is-1,ie ; uhr(I,j,k) = dt*uhtr(I,j,k) ; enddo ; enddo
do J=js-1,je ; do i=is,ie ; vhr(i,J,k) = dt*vhtr(i,J,k) ; enddo ; enddo

! Put the remaining (total) thickness fluxes into uhr and vhr.
! Initialise domore_u, domore_v
do j=js,je
domore_u(j, k) = .false.
do I=is-1,ie
uhr(I,j,k) = dt*uhtr(I,j,k)
enddo
enddo
do J=js-1,je
domore_v(j, k) = .false.
do i=is,ie
vhr(i,J,k) = dt*vhtr(i,J,k)
enddo
enddo
! Find the previous total mass (or volume) of ice, but in the case that this
! category is now dramatically thinner than it was previously, add a tiny
! bit of extra mass to avoid nonsensical tracer concentrations. This will
Expand Down

0 comments on commit f934010

Please sign in to comment.