From 5e5b2a245ee5ea20dc4102942d78d11c33dcf9c4 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 20 Aug 2003 15:03:27 +0000 Subject: [PATCH] More comments added --- Cantera/src/importCTML.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Cantera/src/importCTML.cpp b/Cantera/src/importCTML.cpp index 4bfe61d23..803f937d4 100755 --- a/Cantera/src/importCTML.cpp +++ b/Cantera/src/importCTML.cpp @@ -580,7 +580,15 @@ namespace Cantera { /** - * Create a new ThermoPhase object. + * Create a new ThermoPhase object and initializes it according + * to the XML tree database. + * This routine first looks up the identity of the model for the + * solution thermodynamics in the model attribute of the thermo + * child of the xml phase node. Then, it does a string lookup on + * the model to figure out what ThermoPhase derived class is + * assigned. It mallocs a new instance of that class, and then + * calls importPhase() to populate that class with the correct + * parameters from the XML tree. */ ThermoPhase* newPhase(XML_Node& xmlphase) { XML_Node& th = xmlphase.child("thermo");