mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Clarify deprecation warnings
This commit is contained in:
parent
a5a8c4bfd6
commit
7ffd9f9f9d
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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");
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user