grid_edge Subroutine

private subroutine grid_edge(x, i, k)

Draw time boundary at world x, spanning extent of models i and k.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x

World x coord of boundary.

integer(kind=int32), intent(in) :: i

Model on one side of boundary.

integer(kind=int32), intent(in) :: k

Model on other side of boundary.


Source Code

   subroutine grid_edge(x, i, k)
      !! Draw time boundary at world `x`, spanning extent of models `i` and `k`.
      ! Arguments
      real(real64), intent(in) :: x
         !! World x coord of boundary.
      integer(int32), intent(in) :: i
         !! Model on one side of boundary.
      integer(int32), intent(in) :: k
         !! Model on other side of boundary.
      real(real64) :: ex(2), ey(2)
      ex = clampx(x)
      ey(1) = clampy(ytrans(min(mbound(i, 0_int32), mbound(k, 0_int32))))
      ey(2) = clampy(ytrans(max(ystar(i), ystar(k))))
      call giza_line(2, ex, ey)
   end subroutine grid_edge