From 378d9aa2c52bf60b53ccfeb50f98478aa2b4a96c Mon Sep 17 00:00:00 2001 From: Kshitij Surjuse Date: Sun, 19 Nov 2023 13:31:46 -0500 Subject: [PATCH] used && in range based for loop --- include/libint2/dfbs_generator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libint2/dfbs_generator.h b/include/libint2/dfbs_generator.h index 941835c98..19ddfd777 100644 --- a/include/libint2/dfbs_generator.h +++ b/include/libint2/dfbs_generator.h @@ -120,7 +120,7 @@ namespace libint2 { result.reserve(shells.size()); size_t n = 0; - for (auto shell: shells) { + for (auto &&shell: shells) { result.push_back(n); n += shell.size(); } @@ -135,7 +135,7 @@ namespace libint2 { const auto n = nbf(shells); Eigen::MatrixXd result = Eigen::MatrixXd::Zero(n, n); using libint2::Engine; - Engine engine(libint2::Operator::coulomb, max_nprim(shells), max_l(shells), 0); + Engine engine(libint2::Operator::coulomb, max_nprim(shells), max_l(shells)); engine.set(BraKet::xs_xs); engine.set(ScreeningMethod::Conservative); auto shell2bf = map_shell_to_basis_function(shells);