Parallelization of Upwind Scheme
if (un(i,j).lt.0.d0) then
if (vn(i,j),lt.0.d0) then
a8=fs(i,j)-fs(im1,j) - fs(i,jm1) + fs(im1,jm1)
a1=gx(im1,j)+gx(i,j) - 2.d0*xsgn*(fs(i,j)-fs(im1,j))
a2=(-a8-xsgn*(gx(i,jm1)-gx(i,j)))*ysgn
Compiler can not generate
the optimal data transfer
communication is conditional.