Skip to content

Commit

Permalink
Adding clang format changes from bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosMejZ committed Sep 20, 2023
2 parents 3241bc4 + 74702c2 commit d4a7e4a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions include/macis/asci/determinant_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,12 @@ std::vector<wfn_t<N>> asci_search(
// and keep only the duplicate with positive coefficient.
keep_only_largest_copy_asci_pairs(asci_pairs);

//asci_pairs.erase(std::partition(asci_pairs.begin(), asci_pairs.end(),
// [](const auto& p) { return p.rv < 0.0; }),
// asci_pairs.end());
// asci_pairs.erase(std::partition(asci_pairs.begin(), asci_pairs.end(),
// [](const auto& p) { return p.rv < 0.0; }),
// asci_pairs.end());

// Only do top-K on (ndets_max - ncdets) b/c CDETS will be added later
//const size_t top_k_elements = ndets_max - ncdets;
// const size_t top_k_elements = ndets_max - ncdets;
const size_t top_k_elements = ndets_max;

auto keep_large_en = clock_type::now();
Expand Down Expand Up @@ -651,7 +651,7 @@ std::vector<wfn_t<N>> asci_search(
[](auto x) { return x.state; });

// Insert the CDETS back in
//new_dets.insert(new_dets.end(), cdets_begin, cdets_end);
// new_dets.insert(new_dets.end(), cdets_begin, cdets_end);
new_dets.shrink_to_fit();

logger->info(" * New Dets Mem = {:.2e} GiB", to_gib(new_dets));
Expand Down
2 changes: 1 addition & 1 deletion include/macis/asci/grow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ auto asci_grow(ASCISettings asci_settings, MCSCFSettings mcscf_settings,
logger->trace(" * ASCI_ITER_DUR = {:.2e} ms", ai_dur.count());
if(ndets_new > wfn.size())
logger->info("Wavefunction didn't grow enough...");
//throw std::runtime_error("Wavefunction didn't grow enough...");
// throw std::runtime_error("Wavefunction didn't grow enough...");

logger->info(fmt_string, iter++, E, E - E0, wfn.size());
if(asci_settings.grow_with_rot and
Expand Down
14 changes: 7 additions & 7 deletions include/macis/gf/bandlan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ void BandLan(const Functor &H, std::vector<Cont> &qs, std::vector<Cont> &bandH,
bandH[(it - 1) * nLanIts + it + nbands - 1];
true_indx[it + nbands] = next_indx;
if(std::abs(bandH[(it - 1) * nLanIts + it + nbands - 1]) < thres) {
//std::cout
// << "BAND LANCZOS STOPPED PREMATURELY DUE TO SMALL NORM! NAMELY "
// << bandH[(it - 1) * nLanIts + it + nbands - 1]
// << ", STOPPED AT ITERATION: " << it << std::endl;
//nLanIts = it;
//bandH.resize(nLanIts * nLanIts);
//break;
// std::cout
// << "BAND LANCZOS STOPPED PREMATURELY DUE TO SMALL NORM! NAMELY "
// << bandH[(it - 1) * nLanIts + it + nbands - 1]
// << ", STOPPED AT ITERATION: " << it << std::endl;
// nLanIts = it;
// bandH.resize(nLanIts * nLanIts);
// break;
blas::scal(N, 0., qs.data() + true_indx[it + nbands] * N, 1);
std::cout << "FOUND A ZERO VECTOR AT POSITION " << next_indx
<< std::endl;
Expand Down

0 comments on commit d4a7e4a

Please sign in to comment.