1 subroutine da_set_boundary_2d(var)
3 !------------------------------------------------------------------------
4 ! Purpose: Merge East-West boundary values for input 3d-array (var)
5 !------------------------------------------------------------------------
9 real :: var(ims:ime, jms:jme)
13 if ((its /= ids) .or. (ite /= ide)) return
15 if (trace_use) call da_trace_entry("da_set_boundary_2d")
19 var(ids-n,j) = var(ide+1-n,j)
20 var(ide+n,j) = var(ids-1+n,j)
24 if (trace_use) call da_trace_exit("da_set_boundary_2d")
26 end subroutine da_set_boundary_2d