1 subroutine da_array_print(direction, a, ch)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 integer, intent(in) :: direction
10 real*8, intent(in) :: a(:,:)
11 character (len=*), intent(in) :: ch
20 len1 = size(a(:,:),dim=1)
21 len2 = size(a(:,:),dim=2)
23 ! Writes the scalar field a
25 write(unit=stdout,fmt='(A)') trim(ch)
28 write(unit=stdout, fmt='(a, 1pe15.8, 4i8)') &
29 ' max(a)=', amax, shape(a)
31 write(unit=stdout,fmt='(a, 1pe15.8, a)') &
32 ' max(a)=', amax, ', i down, j horiz.'
34 write(unit=stdout,fmt='(6x,288i3)') (i,i=1,len2)
36 ! Direction indicates the order of the rows of the print out:
38 if (direction == 1) then
50 write(unit=stdout,fmt='(1x,i5,288i3)') &
51 j, (inT(a(j,i)/amax*99.0),i=1,len2)
55 write (unit=stdout,fmt='(A)') " "
57 end subroutine da_array_print