10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-22 20:35:19 +01:00

Indentation

This commit is contained in:
Anthony Scemama 2017-11-29 13:56:48 +01:00
parent 4a7a80679b
commit 2dea5ea1af
3 changed files with 512 additions and 511 deletions

View File

@ -218,7 +218,7 @@ END_PROVIDER
subroutine update_psi_average_norm_contrib(w) subroutine update_psi_average_norm_contrib(w)
implicit none implicit none
BEGIN_DOC BEGIN_DOC
! Compute psi_average_norm_contrib for different state average weights w(:) ! Compute psi_average_norm_contrib for different state average weights w(:)
END_DOC END_DOC
double precision, intent(in) :: w(N_states) double precision, intent(in) :: w(N_states)
double precision :: w0(N_states), f double precision :: w0(N_states), f
@ -281,7 +281,7 @@ END_PROVIDER
&BEGIN_PROVIDER [ integer, psi_det_sorted_order, (psi_det_size) ] &BEGIN_PROVIDER [ integer, psi_det_sorted_order, (psi_det_size) ]
implicit none implicit none
BEGIN_DOC BEGIN_DOC
! Wave function sorted by determinants contribution to the norm (state-averaged) ! Wave function sorted by determinants contribution to the norm (state-averaged)
! !
! psi_det_sorted_order(i) -> k : index in psi_det ! psi_det_sorted_order(i) -> k : index in psi_det
END_DOC END_DOC
@ -395,7 +395,7 @@ end
BEGIN_DOC BEGIN_DOC
! Max and min values of the coefficients ! Max and min values of the coefficients
END_DOC END_DOC
integer:: i integer :: i
do i=1,N_states do i=1,N_states
psi_coef_min(i) = minval(psi_coef(:,i)) psi_coef_min(i) = minval(psi_coef(:,i))
psi_coef_max(i) = maxval(psi_coef(:,i)) psi_coef_max(i) = maxval(psi_coef(:,i))
@ -475,7 +475,7 @@ subroutine save_wavefunction
implicit none implicit none
use bitmasks use bitmasks
BEGIN_DOC BEGIN_DOC
! Save the wave function into the EZFIO file ! Save the wave function into the EZFIO file
END_DOC END_DOC
if (mpi_master) then if (mpi_master) then
call save_wavefunction_general(N_det,min(N_states,N_det),psi_det_sorted,size(psi_coef_sorted,1),psi_coef_sorted) call save_wavefunction_general(N_det,min(N_states,N_det),psi_det_sorted,size(psi_coef_sorted,1),psi_coef_sorted)
@ -487,7 +487,7 @@ subroutine save_wavefunction_unsorted
implicit none implicit none
use bitmasks use bitmasks
BEGIN_DOC BEGIN_DOC
! Save the wave function into the EZFIO file ! Save the wave function into the EZFIO file
END_DOC END_DOC
if (mpi_master) then if (mpi_master) then
call save_wavefunction_general(N_det,min(N_states,N_det),psi_det,size(psi_coef,1),psi_coef) call save_wavefunction_general(N_det,min(N_states,N_det),psi_det,size(psi_coef,1),psi_coef)
@ -497,7 +497,7 @@ end
subroutine save_wavefunction_general(ndet,nstates,psidet,dim_psicoef,psicoef) subroutine save_wavefunction_general(ndet,nstates,psidet,dim_psicoef,psicoef)
implicit none implicit none
BEGIN_DOC BEGIN_DOC
! Save the wave function into the EZFIO file ! Save the wave function into the EZFIO file
END_DOC END_DOC
use bitmasks use bitmasks
include 'constants.include.F' include 'constants.include.F'
@ -559,7 +559,7 @@ end
subroutine save_wavefunction_specified(ndet,nstates,psidet,psicoef,ndetsave,index_det_save) subroutine save_wavefunction_specified(ndet,nstates,psidet,psicoef,ndetsave,index_det_save)
implicit none implicit none
BEGIN_DOC BEGIN_DOC
! Save the wave function into the EZFIO file ! Save the wave function into the EZFIO file
END_DOC END_DOC
use bitmasks use bitmasks
integer, intent(in) :: ndet,nstates integer, intent(in) :: ndet,nstates
@ -684,8 +684,8 @@ subroutine apply_excitation(det, exc, res, ok, Nint)
ok = .false. ok = .false.
degree = exc(0,1,1) + exc(0,1,2) degree = exc(0,1,1) + exc(0,1,2)
! call decode_exc(exc,degree,h1,p1,h2,p2,s1,s2) ! call decode_exc(exc,degree,h1,p1,h2,p2,s1,s2)
! INLINE ! INLINE
select case(degree) select case(degree)
case(2) case(2)
if (exc(0,1,1) == 2) then if (exc(0,1,1) == 2) then
@ -738,7 +738,7 @@ subroutine apply_excitation(det, exc, res, ok, Nint)
print *, "apply ex" print *, "apply ex"
STOP STOP
end select end select
! END INLINE ! END INLINE
res = det res = det

View File

@ -1,7 +1,7 @@
BEGIN_PROVIDER [ integer, mo_tot_num ] BEGIN_PROVIDER [ integer, mo_tot_num ]
implicit none implicit none
BEGIN_DOC BEGIN_DOC
! Number of MOs ! Number of MOs
END_DOC END_DOC
logical :: has logical :: has

View File

@ -146,8 +146,9 @@ BEGIN_PROVIDER [ double precision, nuclear_repulsion ]
END_DOC END_DOC
PROVIDE mpi_master nucl_coord nucl_charge nucl_num PROVIDE mpi_master nucl_coord nucl_charge nucl_num
IF (disk_access_nuclear_repulsion.EQ.'Read') THEN if (disk_access_nuclear_repulsion.EQ.'Read') then
LOGICAL :: has logical :: has
if (mpi_master) then if (mpi_master) then
call ezfio_has_nuclei_nuclear_repulsion(has) call ezfio_has_nuclei_nuclear_repulsion(has)
if (has) then if (has) then
@ -168,7 +169,7 @@ BEGIN_PROVIDER [ double precision, nuclear_repulsion ]
IRP_ENDIF IRP_ENDIF
ELSE else
integer :: k,l integer :: k,l
double precision :: Z12, r2, x(3) double precision :: Z12, r2, x(3)
@ -187,17 +188,17 @@ BEGIN_PROVIDER [ double precision, nuclear_repulsion ]
enddo enddo
enddo enddo
nuclear_repulsion *= 0.5d0 nuclear_repulsion *= 0.5d0
END IF end if
call write_time(output_Nuclei) call write_time(output_Nuclei)
call write_double(output_Nuclei,nuclear_repulsion, & call write_double(output_Nuclei,nuclear_repulsion, &
'Nuclear repulsion energy') 'Nuclear repulsion energy')
IF (disk_access_nuclear_repulsion.EQ.'Write') THEN if (disk_access_nuclear_repulsion.EQ.'Write') then
if (mpi_master) then if (mpi_master) then
call ezfio_set_nuclei_nuclear_repulsion(nuclear_repulsion) call ezfio_set_nuclei_nuclear_repulsion(nuclear_repulsion)
endif endif
END IF endif
END_PROVIDER END_PROVIDER
BEGIN_PROVIDER [ character*(128), element_name, (78)] BEGIN_PROVIDER [ character*(128), element_name, (78)]