mirror of
https://github.com/pfloos/quack
synced 2024-08-15 00:58:34 +02:00
37 lines
1.2 KiB
Fortran
37 lines
1.2 KiB
Fortran
|
subroutine print_excitation(method,ispin,nS,Omega)
|
||
|
|
||
|
! Print excitation energies for a given spin manifold
|
||
|
|
||
|
implicit none
|
||
|
include 'parameters.h'
|
||
|
|
||
|
character*5,intent(in) :: method
|
||
|
integer,intent(in) :: ispin,nS
|
||
|
double precision,intent(in) :: Omega(nS)
|
||
|
|
||
|
character*7 :: spin_manifold
|
||
|
integer :: ia
|
||
|
|
||
|
if(ispin == 1) spin_manifold = 'singlet'
|
||
|
if(ispin == 2) spin_manifold = 'triplet'
|
||
|
|
||
|
write(*,*)
|
||
|
write(*,*)'-------------------------------------------------------------'
|
||
|
write(*,'(1X,A1,1X,A4,A14,A7,A9,A25)')'|',method,' calculation: ',spin_manifold,' manifold',' |'
|
||
|
write(*,*)'-------------------------------------------------------------'
|
||
|
write(*,'(1X,A1,1X,A5,1X,A1,1X,A23,1X,A1,1X,A23,1X,A1,1X)') &
|
||
|
'|','State','|',' Excitation energy (au) ','|',' Excitation energy (eV) ','|'
|
||
|
write(*,*)'-------------------------------------------------------------'
|
||
|
|
||
|
do ia=1,nS
|
||
|
write(*,'(1X,A1,1X,I5,1X,A1,1X,F23.6,1X,A1,1X,F23.6,1X,A1,1X)') &
|
||
|
'|',ia,'|',Omega(ia),'|',Omega(ia)*HaToeV,'|'
|
||
|
enddo
|
||
|
|
||
|
write(*,*)'-------------------------------------------------------------'
|
||
|
write(*,*)
|
||
|
|
||
|
end subroutine print_excitation
|
||
|
|
||
|
|