Skip to content

Commit

Permalink
Clarify deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Mar 6, 2023
1 parent c5bf0db commit 07e9210
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/kinetics/BulkKinetics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BulkKinetics::BulkKinetics()

BulkKinetics::BulkKinetics(ThermoPhase* thermo) : BulkKinetics()
{
warn_deprecated("BulkKinetics::BulkKinetics",
warn_deprecated("BulkKinetics::BulkKinetics(ThermoPhase*)",
"To be removed after Cantera 3.0. Use default constructor instead.");
addPhase(*thermo);
}
Expand Down
2 changes: 1 addition & 1 deletion src/kinetics/GasKinetics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GasKinetics::GasKinetics()
GasKinetics::GasKinetics(ThermoPhase* thermo)
: GasKinetics()
{
warn_deprecated("GasKinetics::GasKinetics",
warn_deprecated("GasKinetics::GasKinetics(ThermoPhase*)",
"To be removed after Cantera 3.0. Use default constructor instead.");
addPhase(*thermo);
}
Expand Down
2 changes: 1 addition & 1 deletion src/kinetics/InterfaceKinetics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ InterfaceKinetics::InterfaceKinetics()
InterfaceKinetics::InterfaceKinetics(ThermoPhase* thermo)
: InterfaceKinetics()
{
warn_deprecated("InterfaceKinetics::InterfaceKinetics",
warn_deprecated("InterfaceKinetics::InterfaceKinetics(ThermoPhase*)",
"To be removed after Cantera 3.0. Use default constructor instead.");
addPhase(*thermo);
}
Expand Down
4 changes: 2 additions & 2 deletions src/kinetics/KineticsFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ unique_ptr<Kinetics> newKinetics(const vector<ThermoPhase*>& phases,
const AnyMap& phaseNode,
const AnyMap& rootNode)
{
warn_deprecated("newKinetics",
warn_deprecated("newKinetics(vector<ThermoPhase*>&, AnyMap&, AnyMap&)",
"To be removed after Cantera 3.0; superseded by\nnewKinetics"
"(const vector<shared_ptr<ThermoPhase>>&, const AnyMap&, const AnyMap&).");
std::string kinType = phaseNode.getString("kinetics", "none");
Expand Down Expand Up @@ -141,7 +141,7 @@ unique_ptr<Kinetics> newKinetics(const std::vector<ThermoPhase*>& phases,
const std::string& filename,
const std::string& phase_name)
{
warn_deprecated("newKinetics",
warn_deprecated("newKinetics(vector<ThermoPhase*>&, const string&, const string&)",
"To be removed after Cantera 3.0; superseded by\nnewKinetics"
"(const vector<shared_ptr<ThermoPhase>>&, const string&, const string&).");
AnyMap root = AnyMap::fromYamlFile(filename);
Expand Down

0 comments on commit 07e9210

Please sign in to comment.