10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-07 22:53:52 +01:00
QuantumPackage/src/tools/sort_wf.irp.f

21 lines
398 B
Fortran
Raw Normal View History

2023-03-23 11:12:02 +01:00
program sort_wf
implicit none
read_wf = .true.
touch read_wf
2023-03-23 11:24:26 +01:00
call routine
end
subroutine routine
implicit none
integer :: i
character*(128) :: output
integer :: i_unit_output,getUnitAndOpen
output=trim(ezfio_filename)//'.wf_sorted'
i_unit_output = getUnitAndOpen(output,'w')
do i = 1, N_det
2023-03-28 11:21:19 +02:00
write(i_unit_output, *)i,dabs(psi_coef_sorted(i,1))/dabs(psi_coef_sorted(1,1))
2023-03-23 11:24:26 +01:00
enddo
2023-03-23 11:12:02 +01:00
end