Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Jan 12, 2024
1 parent 29fb30e commit a9521a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ namespace open_atmos
all_species.push_back(species);
}

// check for duplicate species
for(size_t i = 0; i < all_species.size(); ++i) {
for(size_t j = i+1; j < all_species.size(); ++j) {
if (all_species[i].name == all_species[j].name) {
Expand Down Expand Up @@ -258,6 +259,7 @@ namespace open_atmos
std::string name = object[validation::keys.name].get<std::string>();
mechanism.name = name;

// parse all of the species at once
auto species_parsing = ParseSpecies(object["species"]);

if (species_parsing.first != ConfigParseStatus::Success)
Expand Down

0 comments on commit a9521a0

Please sign in to comment.