Deprecate ctml::getFloats
This commit is contained in:
parent
18a102c91f
commit
843f2ad337
2 changed files with 3 additions and 0 deletions
|
|
@ -588,6 +588,7 @@ bool getOptionalFloat(const Cantera::XML_Node& parent, const std::string& name,
|
|||
* @param node Current XML node to get the values from
|
||||
* @param v Output map of the results.
|
||||
* @param convert Turn on conversion to SI units
|
||||
* @param deprecated Unused. To be removed in Cantera 2.2.
|
||||
*/
|
||||
void getFloats(const Cantera::XML_Node& node, std::map<std::string, double>& v,
|
||||
const bool convert=true);
|
||||
|
|
|
|||
|
|
@ -228,6 +228,8 @@ void getIntegers(const Cantera::XML_Node& node,
|
|||
void getFloats(const Cantera::XML_Node& node, std::map<std::string, double>& v,
|
||||
const bool convert)
|
||||
{
|
||||
warn_deprecated("ctml::getFloats",
|
||||
"To be removed in Cantera 2.2.");
|
||||
std::vector<XML_Node*> f;
|
||||
node.getChildren("float",f);
|
||||
int n = static_cast<int>(f.size());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue