Skip to content

Commit

Permalink
Auto-format code using Clang-Format
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 18, 2024
1 parent 4db34d0 commit 8b01a7b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ namespace open_atmos
return { status, tunneling };
}

std::pair<ConfigParseStatus, types::Surface> ParseSurface(const json& object, const std::vector<types::Species> existing_species, const std::vector<types::Phase> existing_phases)
std::pair<ConfigParseStatus, types::Surface>
ParseSurface(const json& object, const std::vector<types::Species> existing_species, const std::vector<types::Phase> existing_phases)
{
ConfigParseStatus status = ConfigParseStatus::Success;
types::Surface surface;
Expand Down Expand Up @@ -744,9 +745,8 @@ namespace open_atmos
}

std::string aerosol_phase = object[validation::keys.aerosol_phase].get<std::string>();
auto it = std::find_if(existing_phases.begin(), existing_phases.end(), [&aerosol_phase](const auto& phase) {
return phase.name == aerosol_phase;
});
auto it =
std::find_if(existing_phases.begin(), existing_phases.end(), [&aerosol_phase](const auto& phase) { return phase.name == aerosol_phase; });
if (status == ConfigParseStatus::Success && it == existing_phases.end())
{
status = ConfigParseStatus::UnknownPhase;
Expand All @@ -762,7 +762,8 @@ namespace open_atmos
return { status, surface };
}

std::pair<ConfigParseStatus, types::Reactions> ParseReactions(const json& objects, const std::vector<types::Species> existing_species, const std::vector<types::Phase> existing_phases)
std::pair<ConfigParseStatus, types::Reactions>
ParseReactions(const json& objects, const std::vector<types::Species> existing_species, const std::vector<types::Phase> existing_phases)
{
ConfigParseStatus status = ConfigParseStatus::Success;
types::Reactions reactions;
Expand Down

0 comments on commit 8b01a7b

Please sign in to comment.