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

Update upp submodule for fixing in-line post issues for RRFS and HAFS #558

Merged
merged 5 commits into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
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
11 changes: 8 additions & 3 deletions io/post_fv3.F90
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,18 @@ subroutine set_postvars_fv3(wrt_int_state,mpicomp,setvar_atmfile, &
call exch(gdlon)

!$omp parallel do default(none),private(i,j,ip1), &
!$omp& shared(jsta,jend_m,im,dx,gdlat,gdlon,dy,ista,iend_m)
!$omp& shared(jsta,jend_m,im,dx,gdlat,gdlon,dy,ista,iend_m,maptype,dxval,dyval,gdsdegr)
do j = jsta, jend_m
do i = ista, iend_m
ip1 = i + 1
!if (ip1 > im) ip1 = ip1 - im
dx(i,j) = erad*cos(gdlat(i,j)*dtr)*(gdlon(ip1,j)-gdlon(i,j))*dtr
dy(i,j) = erad*(gdlat(i,j+1)-gdlat(i,j))*dtr ! like A*DPH
if(maptype==207)then
dx(i,j)=erad*dxval*dtr/gdsdegr
dy(i,j)=erad*dyval*dtr/gdsdegr
WenMeng-NOAA marked this conversation as resolved.
Show resolved Hide resolved
else
dx(i,j) = erad*cos(gdlat(i,j)*dtr)*(gdlon(ip1,j)-gdlon(i,j))*dtr
dy(i,j) = erad*(gdlat(i,j+1)-gdlat(i,j))*dtr ! like A*DPH
endif
end do
end do
!
Expand Down