Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating a continue statement in fv_nudge #153

Merged
merged 2 commits into from
Oct 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/fv_nudge.F90
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ subroutine ps_nudging(dt, factor, factor_nwp, npz, ak, bk, ps_obs, mask, tm, ps,
if ( kmax < km ) call mpp_error(FATAL,'==> KMAX must be larger than km')

do j=js,je
do 666 i=is,ie
do i=is,ie
do k=1, km+1
pk0(k) = (ak0(k) + bk0(k)*ps_obs(i,j))**kappa
enddo
Expand All @@ -800,8 +800,8 @@ subroutine ps_nudging(dt, factor, factor_nwp, npz, ak, bk, ps_obs, mask, tm, ps,
pt0 = tm(i,j)/(pk0(km+1)-pk0(km))*(kappa*(pn0(km+1)-pn0(km)))
pst = pk0(km+1) + (gz0(i,j)-phis(i,j))/(cp_air*pt0)
endif
666 continue ! i-loop
ps_dt(i,j) = pst**(1./kappa) - ps(i,j)
666 ps_dt(i,j) = pst**(1./kappa) - ps(i,j)
enddo ! i-loop
enddo ! j-loop

if( nf_ps>0 ) call del2_scalar(ps_dt, del2_cd, 1, nf_ps, bd, npx, npy, gridstruct, domain)
Expand Down