subroutine cyclicmj
use modglobal, only:ib, ie, jb, je, ih, jh, kb, ke, kh, jmax
use modfields, only:u0, um, v0, vm, w0, wm, e120, e12m, shear
use modsubgriddata, only:loneeqn, lsmagorinsky
use modmpi, only:excjs
integer n, m
call excjs(u0, ib, ie, jb, je, kb, ke + kh, ih, jh)
call excjs(v0, ib, ie, jb, je, kb, ke + kh, ih, jh)
call excjs(w0, ib, ie, jb, je, kb, ke + kh, ih, jh)
call excjs(um, ib, ie, jb, je, kb, ke + kh, ih, jh)
call excjs(vm, ib, ie, jb, je, kb, ke + kh, ih, jh)
call excjs(wm, ib, ie, jb, je, kb, ke + kh, ih, jh)
if (loneeqn) then
call excjs(e120, ib, ie, jb, je, kb, ke + kh, ih, jh)
call excjs(e12m, ib, ie, jb, je, kb, ke + kh, ih, jh)
! exchange shear components between processors
do n = 1, 12 ! for all 12 components
call excjs(shear(:, :, :, n), ib, ie, jb, je, kb, ke, 0, 1)
end do
end if
if (lsmagorinsky) then
! exchange shear components between processors
do n = 1, 12 ! for all 12 components
call excjs(shear(:, :, :, n), ib, ie, jb, je, kb, ke, 0, 1)
end do
end if
return
end subroutine cyclicmj