Can some one explain the following section of the code Nonlinear/u2dbc_im.F ?
Link: https://www.myroms.org/svn/src/trunk/RO ... u2dbc_im.F
Code: Select all
# elif defined SOUTH_M2FLATHER || defined SOUTH_M2REDUCED
!
! Southern edge, Chapman boundary condition.
!
DO i=IstrU,Iend
cff=dt2d*0.5_r8*(GRID(ng)%pn(i-1,Jstr)+ &
& GRID(ng)%pn(i ,Jstr))
cff1=SQRT(g*0.5_r8*(GRID(ng)%h(i-1,Jstr)+ &
& zeta(i-1,Jstr,know)+ &
& GRID(ng)%h(i ,Jstr)+ &
& zeta(i ,Jstr,know)))
Ce=cff*cff1
cff2=1.0_r8/(1.0_r8+Ce)
ubar(i,Jstr-1,kout)=cff2*(ubar(i,Jstr-1,know)+ &
& Ce*ubar(i,Jstr,kout))
# ifdef MASKING
ubar(i,Jstr-1,kout)=ubar(i,Jstr-1,kout)* &
& GRID(ng)%umask(i,Jstr-1)
# endif
END DO
# elif defined SOUTH_M2CLAMPED
Chapman boundary condition. Does that mean no FLATHER condition is implemented for the southern boundary for ubar ? Or does it mean FLATHER condition is equivalent to Chapman condition for the southern edge for ubar?
Same is happening for the NORTH_M2FLATHER condition.
Thanks.
Wen