Skip to content

Commit

Permalink
Variable mirrors existing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Sep 7, 2023
1 parent 429e71c commit 326242e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/teqp/models/CPA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class CPAAssociation {
const std::vector<int> N_sites;
const double R_gas;

auto get_N_sites(const std::vector<association_classes> &classes) {
auto get_N_sites(const std::vector<association_classes> &the_classes) {
std::vector<int> N_sites_out;
auto get_N = [](auto cl) {
switch (cl) {
Expand All @@ -198,7 +198,7 @@ class CPAAssociation {
default: throw std::invalid_argument("Bad association class");
}
};
for (auto cl : classes) {
for (auto cl : the_classes) {
N_sites_out.push_back(get_N(cl));
}
return N_sites_out;
Expand Down

0 comments on commit 326242e

Please sign in to comment.