10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-23 04:43:45 +01:00

Added save_wavefunction_truncated(ci_threshold)

This commit is contained in:
Anthony Scemama 2021-11-25 14:46:20 +01:00
parent 14d69c1cdd
commit fbfcc98f41
4 changed files with 8 additions and 3 deletions

View File

@ -5,4 +5,3 @@ interface: ezfio
size: (determinants.n_states)

View File

@ -79,6 +79,6 @@ subroutine run
call ezfio_set_cis_energy(CI_energy)
psi_coef = ci_eigenvectors
SOFT_TOUCH psi_coef
call save_wavefunction_truncated(1.d-12)
call save_wavefunction_truncated(ci_threshold)
end

View File

@ -63,7 +63,7 @@ subroutine run
endif
psi_coef = ci_eigenvectors
SOFT_TOUCH psi_coef
call save_wavefunction
call save_wavefunction_truncated(ci_threshold)
call ezfio_set_cisd_energy(CI_energy)
do i = 1,N_states

View File

@ -136,3 +136,9 @@ doc: If |true|, discard any Slater determinants with an interaction smaller than
interface: ezfio,provider,ocaml
default: False
[ci_threshold]
type: Threshold
doc: Cut-off to apply to the CI coefficients when the wave function is stored
interface: ezfio,provider,ocaml
default: 0.