Skip to content

Commit

Permalink
Streaming filter
Browse files Browse the repository at this point in the history
Filter equations reformulated.
  • Loading branch information
c2xu committed Aug 19, 2024
1 parent 19562e3 commit 7106b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parameterizations/lateral/MOM_streaming_filter.F90
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ subroutine Filt_accum(u, u1, Time, US, CS)
c1 = CS%om * dt
c2 = 1.0 - CS%a * c1
do j=js,je ; do i=is,ie
CS%s1(i,j) = c1 * (CS%u1(i,j) + (CS%a**2) * u(i,j)) + c2 * CS%s1(i,j)
CS%u1(i,j) = -c1 * (CS%s1(i,j) + (-2*CS%a) * u(i,j)) + c2 * CS%u1(i,j)
CS%s1(i,j) = c1 * CS%u1(i,j) + CS%s1(i,j)
CS%u1(i,j) = -c1 * (CS%s1(i,j) - CS%a * u(i,j)) + c2 * CS%u1(i,j)
enddo; enddo

u1 => CS%u1
Expand Down

0 comments on commit 7106b09

Please sign in to comment.