Skip to content

Commit

Permalink
used && in range based for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-05 committed Nov 20, 2023
1 parent a7a28b1 commit 378d9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/libint2/dfbs_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
Expand Down

0 comments on commit 378d9aa

Please sign in to comment.