1 subroutine da_set_boundary_3d(var)
2 !------------------------------------------------------------------------
5 ! Merge East-West boundary values for input 3d-array (var)
6 !------------------------------------------------------------------------
10 real, intent(inout) :: var(ims:ime, jms:jme, kms:kme)
14 if ((its /= ids) .or. (ite /= ide)) return
16 if (trace_use) call da_trace_entry("da_set_boundary_3d")
21 var(ids-n,j,k) = var(ide+1-n,j,k)
22 var(ide+n,j,k) = var(ids-1+n,j,k)
27 if (trace_use) call da_trace_exit("da_set_boundary_3d")
29 end subroutine da_set_boundary_3d