-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removing nlohmann::json in favor of yaml-cpp * duplicating tests for json and yaml * finished troe parsing * starting to split the parsers out into multiple files * splitting all the parsers out * updating workflow files * responding to PR comment
- Loading branch information
Showing
224 changed files
with
5,067 additions
and
2,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
include/open_atmos/mechanism_configuration/json_parser.hpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
158 changes: 158 additions & 0 deletions
158
include/open_atmos/mechanism_configuration/parser_types.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
// Copyright (C) 2023-2024 National Center for Atmospheric Research, University of Illinois at Urbana-Champaign | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <yaml-cpp/yaml.h> | ||
|
||
#include <open_atmos/mechanism_configuration/parse_status.hpp> | ||
#include <open_atmos/mechanism_configuration/utils.hpp> | ||
#include <open_atmos/types.hpp> | ||
#include <vector> | ||
|
||
namespace open_atmos | ||
{ | ||
namespace mechanism_configuration | ||
{ | ||
class CondensedPhaseArrheniusParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class TroeParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class BranchedParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class TunnelingParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class SurfaceParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class CondensedPhasePhotolysisParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class SimpolPhaseTransferParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class EmissionParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class PhotolysisParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class FirstOrderLossParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class AqueousEquilibriumParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class WetDepositionParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class HenrysLawParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
|
||
class ArrheniusParser : public IReactionParser | ||
{ | ||
public: | ||
ConfigParseStatus parse( | ||
const YAML::Node& object, | ||
const std::vector<types::Species>& existing_species, | ||
const std::vector<types::Phase>& existing_phases, | ||
open_atmos::types::Reactions& reactions) override; | ||
}; | ||
} // namespace mechanism_configuration | ||
} // namespace open_atmos |
Oops, something went wrong.