%N transl %F $MIR/src/subs/trans.for
%D Transpose logical matrix
%: transpose, reorder
%P nebk
%B
      subroutine transl (a, m, n, move, iwrk, iok)

      implicit none
      integer m, n, iwrk, move(iwrk), iok
      logical a(m*n)

     In situ logical matrix transpose

     From Laflin and Brebner, CACM, Vol 13, No.5, May 1970

  Input
    a    2-D matrix passed in as 1-D
    m,n  matrix dimensions
    move work array
    iwrk Size of move, should be (m+n)/2
  Output
    iok  0 => OK
        -1 => iwrk <= 0
