Skip to content

Commit 9109b59

Browse files
Misc QOL
1 parent f249eee commit 9109b59

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

include/macis/asci/determinant_search.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ asci_contrib_container<wfn_t<N>> asci_contributions_constraint(
299299
const size_t c_end = std::min(ncon_total, ic + ntake);
300300
for(; ic < c_end; ++ic) {
301301
const auto& con = constraints[ic].first;
302-
//printf("[rank %4d tid:%4d] %10lu / %10lu\n", world_rank,
303-
// omp_get_thread_num(), ic, ncon_total);
302+
printf("[rank %4d tid:%4d] %10lu / %10lu\n", world_rank,
303+
omp_get_thread_num(), ic, ncon_total);
304304

305305
for(size_t i_alpha = 0, iw = 0; i_alpha < nuniq_alpha; ++i_alpha) {
306306
const auto& alpha_det = uniq_alpha[i_alpha].first;

include/macis/asci/pt2.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ double asci_pt2_constraint(wavefunction_iterator_t<N> cdets_begin,
107107
// auto constraints = dist_constraint_general<wfn_t<N>>(
108108
// 5, norb, n_sing_beta, n_doub_beta, uniq_alpha, comm);
109109
auto constraints = gen_constraints_general<wfn_t<N>>(
110-
5, norb, n_sing_beta, n_doub_beta, uniq_alpha, world_size);
110+
10, norb, n_sing_beta, n_doub_beta, uniq_alpha, world_size * omp_get_max_threads());
111111
auto gen_c_en = clock_type::now();
112112
duration_type gen_c_dur = gen_c_en - gen_c_st;
113113
logger->info(" * GEN_DUR = {:.2e} ms", gen_c_dur.count());
@@ -195,6 +195,15 @@ double asci_pt2_constraint(wavefunction_iterator_t<N> cdets_begin,
195195
}
196196
}
197197

198+
//if(not (i_alpha%10)) {
199+
//// Cleanup
200+
//auto uit = sort_and_accumulate_asci_pairs(asci_pairs.begin(),
201+
// asci_pairs.end());
202+
//asci_pairs.erase(uit, asci_pairs.end());
203+
// printf("[rank %4d tid:%4d] IC = %lu / %lu IA = %lu / %lu SZ = %lu\n", world_rank,
204+
// omp_get_thread_num(), ic, ncon_total, i_alpha, nuniq_alpha, asci_pairs.size());
205+
//}
206+
198207
} // Unique Alpha Loop
199208

200209
double EPT2_local = 0.0;

tests/standalone_driver.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ int main(int argc, char** argv) {
229229
console->info(" * REF_FILE_FMT = {}", reference_data_format);
230230
if(fci_out_fname.size())
231231
console->info(" * FCIDUMP_OUT = {}", fci_out_fname);
232+
console->info(" * NORBITAL = {}", norb);
233+
console->info(" * NINACTIVE = {}", n_inactive);
234+
console->info(" * NACTIVE = {}", n_active);
235+
console->info(" * NVIRTUAL = {}", n_virtual);
232236
console->info(" * MP2_GUESS = {}", mp2_guess);
233237

234238
console->debug("READ {} 1-body integrals and {} 2-body integrals",

0 commit comments

Comments
 (0)