32 integer,
parameter :: rk = kind(1.0d0)
33 integer,
intent(in) :: n
34 real(kind=rk),
intent(in),
dimension(n*(n+1)/2) :: A
37 character(40),
intent(in) :: filename
39 integer,
intent(in) :: output_type
50 real(kind=rk),
dimension(n*(n+1)/2) :: Aout
51 integer :: outunit=unit_mat_tri
56 if(output_type .eq. 0)
then
57 write(emp_e,*)
'Error in output_mat_tri. output_type = 0&
58 & unsupported. Stopping.'
60 elseif(output_type .gt. 0)
then
71 inquire(unit=outunit,opened=opend)
73 open(outunit,file=filename,action=
'write',form=fm)
80 select case(abs(output_type))
82 call dtfttp(
'N',
'U',n,a,aout,err)
86 write(emp_e,*)
'Error in output_mat_tri, unsupported output_type'
87 write(emp_e,*)
'output_type=',output_type,
'. Stopping'
92 if(output_type .gt. 0)
then
Module that stores the information about the outputting from empire.
subroutine output_mat_tri(n, A, filename, output_type)
subroutine to output triangluar matrix various formats