10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-05 05:33:56 +01:00
quantum_package/plugins/FOBOCI/fobo_scf.irp.f

66 lines
1.8 KiB
Fortran
Raw Normal View History

2016-03-11 23:27:39 +01:00
program foboscf
implicit none
2016-11-02 16:01:01 +01:00
!if(disk_access_ao_integrals == "None" .or. disk_access_ao_integrals == "Read" )then
! disk_access_ao_integrals = "Write"
! touch disk_access_ao_integrals
!endif
!print*, 'disk_access_ao_integrals',disk_access_ao_integrals
2016-03-11 23:27:39 +01:00
no_oa_or_av_opt = .True.
touch no_oa_or_av_opt
2016-11-02 16:01:01 +01:00
call run_prepare
2016-03-11 23:27:39 +01:00
call routine_fobo_scf
call save_mos
end
subroutine run_prepare
implicit none
! no_oa_or_av_opt = .False.
! touch no_oa_or_av_opt
2016-03-11 23:27:39 +01:00
call damping_SCF
call diag_inactive_virt_and_update_mos
end
subroutine routine_fobo_scf
implicit none
integer :: i,j
print*,''
print*,''
character*(64) :: label
label = "Natural"
do i = 1, 5
2016-03-14 16:01:55 +01:00
print*,'*******************************************************************************'
print*,'*******************************************************************************'
print*,'FOBO-SCF Iteration ',i
2016-11-02 16:01:01 +01:00
print*, 'ao_bielec_integrals_in_map = ',ao_bielec_integrals_in_map
2016-03-14 16:01:55 +01:00
print*,'*******************************************************************************'
print*,'*******************************************************************************'
if(speed_up_convergence_foboscf)then
if(i==3)then
threshold_lmct = max(threshold_lmct,0.001)
threshold_mlct = max(threshold_mlct,0.05)
soft_touch threshold_lmct threshold_mlct
endif
if(i==4)then
threshold_lmct = max(threshold_lmct,0.005)
threshold_mlct = max(threshold_mlct,0.07)
soft_touch threshold_lmct threshold_mlct
endif
if(i==5)then
threshold_lmct = max(threshold_lmct,0.01)
threshold_mlct = max(threshold_mlct,0.1)
soft_touch threshold_lmct threshold_mlct
endif
endif
2016-11-02 16:01:01 +01:00
call FOBOCI_lmct_mlct_old_thr(i)
2016-03-11 23:27:39 +01:00
call save_osoci_natural_mos
call damping_SCF
call diag_inactive_virt_and_update_mos
call clear_mo_map
call provide_properties
enddo
end