I am not understand the caculating of om_p, om_u, on_p, on_u, om_v, on_v. In the file mod_grid.F, they are discribed as
Code: Select all
! om_p PSI-grid spacing (meters) in the XI-direction. !
! om_r RHO-grid spacing (meters) in the XI-direction. !
! om_u U-grid spacing (meters) in the XI-direction. !
! om_v V-grid spacing (meters) in the XI-direction. !
! on_p PSI-grid spacing (meters) in the ETA-direction. !
! on_r RHO-grid spacing (meters) in the ETA-direction. !
! on_u U-grid spacing (meters) in the ETA-direction. !
! on_v V-grid spacing (meters) in the ETA-direction. !
Code: Select all
om_r(i,j)=1.0_r8/pm(i,j)
on_r(i,j)=1.0_r8/pn(i,j)
Code: Select all
om_u(i,j)=2.0_r8/(pm(i-1,j)+pm(i,j))
on_u(i,j)=2.0_r8/(pn(i-1,j)+pn(i,j))
Code: Select all
on_u(i,j)=2*on_r(i,j)*on_r(i-1,j)/(on_r(i,j)+on_r(i-1,j))
In my opinion, it should be
Code: Select all
on_u(i,j)=(1/pn(i,j)+1/pn(i-1,j))/2=(on_r(i,j)+on_r(i-1,j))/2