Skip to content

Commit 36de489

Browse files
committed
Simple fix of the current problem - this works only for non-spin-polarized case
1 parent c1f2df9 commit 36de489

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/libra_py/workflows/nbra/step3.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,6 +2721,10 @@ def compute_sd_overlaps_in_parallel(step, params):
27212721
active_space2 = ( np.array(active_space) + 1 ).tolist() # conversion to a different convention
27222722
sd_states_reindexed_sorted = params['sd_states_reindexed_sorted']
27232723

2724+
#print("active_space = ", active_space)
2725+
#print("active_space2 = ", active_space2)
2726+
#print("sd_states_reindexed_sorted = ", sd_states_reindexed_sorted)
2727+
27242728
t2 = time.time()
27252729
print('Computing the SD overlaps for step', step)
27262730

@@ -2736,29 +2740,35 @@ def compute_sd_overlaps_in_parallel(step, params):
27362740
# st_ks = data_conv.nparray2MATRIX(st_ks)
27372741
# s_ks_1 = data_conv.nparray2MATRIX(s_ks_1)
27382742
# s_ks_2 = data_conv.nparray2MATRIX(s_ks_2)
2743+
x = sp.load_npz(F'{res_dir_1}/St_ks_{step+start_time}.npz').todense()
2744+
print("original dimensions of the S and ST matrices", x.shape )
2745+
print("the dimensions of the reduced S and ST matrices", st_ks.shape)
27392746

27402747
# Computing the overlaps for SDs
27412748
t2 = time.time()
2749+
#print("sd_states_reindexed_sorted[step] = ", sd_states_reindexed_sorted[step])
2750+
#print("sd_states_reindexed_sorted[step+1] = ", sd_states_reindexed_sorted[step+1])
2751+
27422752
if params['apply_orthonormalization']:
27432753
s_sd_1 = mapping3.ovlp_mat_arb(
27442754
sd_states_reindexed_sorted[step],
27452755
sd_states_reindexed_sorted[step],
27462756
s_ks_1,
2747-
active_space2)
2757+
None)
27482758
#use_minimal=False,
27492759
#use_mo_approach=False).real
27502760
s_sd_2 = mapping3.ovlp_mat_arb(
27512761
sd_states_reindexed_sorted[step + 1],
27522762
sd_states_reindexed_sorted[step + 1],
27532763
s_ks_2,
2754-
active_space2)
2764+
None)
27552765
#use_minimal=False,
27562766
#use_mo_approach=False).real
27572767

27582768
st_sd = mapping3.ovlp_mat_arb(sd_states_reindexed_sorted[step],
27592769
sd_states_reindexed_sorted[step + 1],
27602770
st_ks,
2761-
active_space2)
2771+
None)
27622772
#use_minimal=False,
27632773
#use_mo_approach=False).real
27642774
# s_sd_1 = data_conv.MATRIX2nparray(s_sd_1)

src/libra_py/workflows/nbra/step3_many_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def make_T_matrices_fast(ci_coefficients, ci_basis_states, spin_components, sd_b
417417
if verbosity >= 1:
418418
print("=============== In make_T_matrices ============")
419419
print(F"number_of_states = {number_of_states} nCIs = {nCIs} nSDs = {nSDs}")
420-
print(F"sd_basis_states_unique ", sd_bais_states_unique)
420+
print(F"sd_basis_states_unique ", sd_basis_states_unique)
421421

422422
# Results
423423
SD2CI = []

0 commit comments

Comments
 (0)