2018-10-19 11:32:58 +02:00
|
|
|
program mrsc2sub
|
2016-04-01 23:31:48 +02:00
|
|
|
implicit none
|
2016-04-07 17:54:13 +02:00
|
|
|
double precision, allocatable :: energy(:)
|
|
|
|
allocate (energy(N_states))
|
|
|
|
|
2016-05-20 09:44:22 +02:00
|
|
|
!mrmode : 1=mrcepa0, 2=mrsc2 add, 3=mrcc
|
2018-10-19 11:32:58 +02:00
|
|
|
mrmode = 3
|
|
|
|
|
2016-04-07 17:54:13 +02:00
|
|
|
read_wf = .True.
|
2018-10-19 11:32:58 +02:00
|
|
|
SOFT_TOUCH read_wf
|
2016-04-07 17:54:13 +02:00
|
|
|
call set_generators_bitmasks_as_holes_and_particles
|
2016-11-15 18:39:44 +01:00
|
|
|
if (.True.) then
|
|
|
|
integer :: i,j
|
|
|
|
do j=1,N_states
|
|
|
|
do i=1,N_det
|
|
|
|
psi_coef(i,j) = CI_eigenvectors(i,j)
|
|
|
|
enddo
|
|
|
|
enddo
|
2018-10-19 11:32:58 +02:00
|
|
|
SOFT_TOUCH psi_coef
|
2016-11-15 18:39:44 +01:00
|
|
|
endif
|
2016-04-07 17:54:13 +02:00
|
|
|
call run(N_states,energy)
|
2017-06-26 19:12:44 +02:00
|
|
|
if(do_pt2)then
|
2016-04-07 17:54:13 +02:00
|
|
|
call run_pt2(N_states,energy)
|
|
|
|
endif
|
|
|
|
deallocate(energy)
|
2016-04-01 23:31:48 +02:00
|
|
|
end
|
|
|
|
|