9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-13 00:43:39 +01:00
qp2/src/casscf/casscf.irp.f

30 lines
610 B
Fortran
Raw Normal View History

2019-06-24 16:42:16 +02:00
program casscf
2019-06-24 15:32:26 +02:00
implicit none
BEGIN_DOC
! TODO : Put the documentation of the program here
END_DOC
no_vvvv_integrals = .True.
SOFT_TOUCH no_vvvv_integrals
call run
end
subroutine run
implicit none
double precision :: energy_old, energy
logical :: converged
converged = .False.
energy = 0.d0
! do while (.not.converged)
N_det = 1
TOUCH N_det psi_det psi_coef
call run_cipsi
call driver_wdens
call driver_optorb
energy_old = energy
energy = eone+etwo+ecore
converged = dabs(energy - energy_old) < 1.d-10
! enddo
2019-06-24 16:42:16 +02:00
2019-06-24 15:32:26 +02:00
end