Skip to content

Commit

Permalink
macis
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaypanyala committed Jul 28, 2023
1 parent 52ddb87 commit fc2c651
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 295 deletions.
5 changes: 3 additions & 2 deletions exachem/cc/ccsd/ccsd_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ rest_cs(ExecutionContext& ec, const TiledIndexSpace& MO, Tensor<T>& d_r1, Tensor
return {residual, energy};
}

void print_ccsd_header(const bool do_print) {
void print_ccsd_header(const bool do_print, std::string mname) {
if(do_print) {
if(mname.empty()) mname = "CCSD";
const auto mksp = std::string(10, ' ');
std::cout << std::endl << std::endl;
std::cout << " CCSD iterations" << std::endl;
std::cout << " " << mname << " iterations" << std::endl;
std::cout << std::string(60, '-') << std::endl;
std::cout << " Iter Residuum" << mksp << "Correlation" << mksp << "Time(s)" << std::endl;
std::cout << std::string(60, '-') << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion exachem/cc/ccsd/ccsd_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ rest_cs(ExecutionContext& ec, const TiledIndexSpace& MO, Tensor<T>& d_r1, Tensor
Tensor<T>& d_r2_residual, std::vector<T>& p_evl_sorted, T zshiftl, const TAMM_SIZE& noa,
const TAMM_SIZE& nva, bool transpose = false, const bool not_spin_orbital = false);

void print_ccsd_header(const bool do_print);
void print_ccsd_header(const bool do_print, std::string mname = "");

template<typename T>
std::tuple<std::vector<T>, Tensor<T>, Tensor<T>, Tensor<T>, Tensor<T>, std::vector<Tensor<T>>,
Expand Down
Loading

0 comments on commit fc2c651

Please sign in to comment.