Skip to content

Commit c734d76

Browse files
committed
Added some optional debug printouts (commented for now) in the citools modules; implemented cp2k_compute_adi function that implements a NBRA workflow for CP2K/Libra in a convenient and corrected way. It can be further extended to enable non-NBRA calculations
1 parent 7d76682 commit c734d76

3 files changed

Lines changed: 170 additions & 120 deletions

File tree

src/libra_py/citools/ci.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ def overlap(st_mo, data1, data2, params):
138138
# ------------------------------------------------------------------
139139
# SD and CSF overlap matrices (singlet)
140140
# ------------------------------------------------------------------
141+
#print(F"In ci.overlap: nelec_eff = {nelec_eff} active_space = {active_space}")
142+
#print(F"In ci.overlap: lowest_orbital = {lowest_orbital} highest_orbital = {highest_orbital}")
141143
csf_ovlp, sd_ovlp = interfaces.sd_and_csf_overlaps_singlet(
142144
st_mo,
143145
lowest_orbital,

src/libra_py/citools/interfaces.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,12 +854,13 @@ def sd_and_csf_overlaps_singlet(
854854
# ------------------------------------------------------------------
855855
orbital_space = list(range(lowest_orbital, highest_orbital + 1))
856856

857+
#print(F"In ci.interfaces: orbital_space = {orbital_space}")
857858
if _active_space is None:
858859
active_space = orbital_space
859860
else:
860861
active_space = list(_active_space)
861862
if not set(active_space).issubset(orbital_space):
862-
raise ValueError("Active space orbitals must be within orbital_space")
863+
raise ValueError(F"Active space orbitals {active_space} must be within orbital_space {orbital_space}")
863864

864865
# ==================================================================
865866
# Build reference determinant

0 commit comments

Comments
 (0)