2003-01-20 05:58:50 +08:00
|
|
|
!
|
|
|
|
! Copyright (C) 2001 PWSCF group
|
|
|
|
! This file is distributed under the terms of the
|
|
|
|
! GNU General Public License. See the file `License'
|
|
|
|
! in the root directory of the present distribution,
|
|
|
|
! or http://www.gnu.org/copyleft/gpl.txt .
|
|
|
|
!
|
|
|
|
!-----------------------------------------------------------------------
|
2003-02-08 00:04:36 +08:00
|
|
|
subroutine write_matrix (alpha, wdyn, nat)
|
2003-01-20 05:58:50 +08:00
|
|
|
!-----------------------------------------------------------------------
|
2003-11-06 03:01:20 +08:00
|
|
|
USE io_global, ONLY : stdout
|
2004-01-23 23:08:03 +08:00
|
|
|
USE kinds, only : DP
|
2003-01-20 05:58:50 +08:00
|
|
|
implicit none
|
2003-02-08 00:04:36 +08:00
|
|
|
integer :: i, j, na, nb, nat
|
|
|
|
complex(kind=DP) :: wdyn (3, 3, nat, nat)
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-02-08 00:04:36 +08:00
|
|
|
character (len=*) :: alpha
|
2003-11-06 03:01:20 +08:00
|
|
|
WRITE( stdout, '(a)') alpha
|
2003-02-08 00:04:36 +08:00
|
|
|
do na = 1, nat
|
|
|
|
do nb = 1, nat
|
2003-11-06 03:01:20 +08:00
|
|
|
WRITE( stdout, '(2i4)') na, nb
|
2003-02-08 00:04:36 +08:00
|
|
|
do i = 1, 3
|
2003-11-06 03:01:20 +08:00
|
|
|
WRITE( stdout, '(6f10.5)') (wdyn (i, j, na, nb) , j = 1, 3)
|
2003-01-20 05:58:50 +08:00
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
|
|
|
|
enddo
|
2003-02-08 00:04:36 +08:00
|
|
|
return
|
2003-01-20 05:58:50 +08:00
|
|
|
end subroutine write_matrix
|