mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-08 22:43:38 +01:00
18 lines
360 B
Fortran
18 lines
360 B
Fortran
program swap_mos
|
|
implicit none
|
|
BEGIN_DOC
|
|
! Swaps the indices of two molecular orbitals
|
|
END_DOC
|
|
integer :: i,j, i1, i2
|
|
double precision :: x
|
|
print *, 'MOs to swap?'
|
|
read(*,*) i1, i2
|
|
do i=1,ao_num
|
|
x = mo_coef(i,i1)
|
|
mo_coef(i,i1) = mo_coef(i,i2)
|
|
mo_coef(i,i2) = x
|
|
enddo
|
|
call save_mos
|
|
|
|
end
|