mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-23 12:03:30 +01:00
complex mo swap
This commit is contained in:
parent
82b6bccc37
commit
a3195ae08a
@ -7,11 +7,20 @@ program swap_mos
|
|||||||
double precision :: x
|
double precision :: x
|
||||||
print *, 'MOs to swap?'
|
print *, 'MOs to swap?'
|
||||||
read(*,*) i1, i2
|
read(*,*) i1, i2
|
||||||
do i=1,ao_num
|
if (is_complex) then
|
||||||
x = mo_coef(i,i1)
|
complex*16 :: xc
|
||||||
mo_coef(i,i1) = mo_coef(i,i2)
|
do i=1,ao_num
|
||||||
mo_coef(i,i2) = x
|
xc = mo_coef_complex(i,i1)
|
||||||
enddo
|
mo_coef_complex(i,i1) = mo_coef_complex(i,i2)
|
||||||
|
mo_coef_complex(i,i2) = xc
|
||||||
|
enddo
|
||||||
|
else
|
||||||
|
do i=1,ao_num
|
||||||
|
x = mo_coef(i,i1)
|
||||||
|
mo_coef(i,i1) = mo_coef(i,i2)
|
||||||
|
mo_coef(i,i2) = x
|
||||||
|
enddo
|
||||||
|
endif
|
||||||
call save_mos
|
call save_mos
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user