Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Grid), | intent(in) | :: | this |
subroutine printGrid(this)
type(Grid), intent(in) :: this
integer :: n, m
if (.not. associated(this%data)) then
print "(a)", "Grid Not Associated"
RETURN
endif
n = size(this%data%grid_data)
print "(a,i0,a,i0,a,i0,a)", " <grid:" // trim(this%data%name) // &
" n=", n, &
", refcount: ", refcount(this),">"
end subroutine printGrid