Skip to content

Commit

Permalink
Fixed logic, made ifs one-liners.
Browse files Browse the repository at this point in the history
  • Loading branch information
menzel-gfdl committed Aug 21, 2018
1 parent 9252394 commit e3ea419
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/parameterizations/vertical/MOM_vert_friction.F90
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,10 @@ subroutine vertvisc(u, v, h, forces, visc, dt, OBC, ADp, CDp, G, GV, CS, &
!Check if Stokes mixing allowed if requested (present and associated)
DoStokesMixing=.false.
if (CS%StokesMixing) then
if (present(Waves)) then
DoStokesMixing = associated(Waves)
if (.not. DoStokesMixing) then
call MOM_error(FATAL,"Stokes Mixing called without allocated"//&
"Waves Control Structure")
endif
endif
if (present(Waves)) DoStokesMixing = associated(Waves)
if (.not. DoStokesMixing) &
call MOM_error(FATAL,"Stokes Mixing called without allocated"//&
"Waves Control Structure")
endif

do k=1,nz ; do i=Isq,Ieq ; Ray(i,k) = 0.0 ; enddo ; enddo
Expand Down

0 comments on commit e3ea419

Please sign in to comment.