9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-09 06:53:38 +01:00

added the thresh_de_tc_angles keyword in minimize tc angles

This commit is contained in:
eginer 2024-03-08 17:27:18 +01:00
parent 89aaf30460
commit 3f861a41b5
4 changed files with 7 additions and 23 deletions

View File

@ -1,23 +0,0 @@
#!/bin/bash
# On Darwin: try gzcat if available, otherwise use Python
if [[ $(uname -s) = Darwin ]] ; then
which gzcat &> /dev/null
if [[ $? -eq 0 ]] ; then
exec gzcat $@
else
exec python3 << EOF
import sys
import gzip
with gzip.open("$1", "rt") as f:
print(f.read())
EOF
fi
else
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
command=$(which -a zcat | grep -v "$SCRIPTPATH/" | head -1)
exec $command $@
fi

View File

@ -280,3 +280,8 @@ doc: approach used to evaluate TC integrals [ analytic | numeric | semi-analytic
interface: ezfio,ocaml,provider interface: ezfio,ocaml,provider
default: semi-analytic default: semi-analytic
[thresh_de_tc_angles]
type: Threshold
doc: Thresholds on delta E for changing angles between orbitals
interface: ezfio,provider,ocaml
default: 1.e-03

View File

@ -301,6 +301,7 @@ subroutine routine_save_rotated_mos(thr_deg, good_angles)
! check if TC energy has changed ! check if TC energy has changed
E_new = TC_HF_energy E_new = TC_HF_energy
E_thr = thresh_de_tc_angles
if(dabs(E_new - E_old) .gt. E_thr) then if(dabs(E_new - E_old) .gt. E_thr) then
mo_r_coef = mo_r_coef_old mo_r_coef = mo_r_coef_old
mo_l_coef = mo_l_coef_old mo_l_coef = mo_l_coef_old

1
scripts/PYSCF_EOMCC.py Symbolic link
View File

@ -0,0 +1 @@
/home_lct/eginer/qp2/plugins/qp_plugins_lct/dev/fcidump_for_vbarb/PYSCF_EOMCC.py