From a6c02842572163f5d03d13bca66f00f2d7db952d Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 14 Jan 2009 22:23:03 +0000 Subject: [PATCH] Added report() to ThermoPhase.h --- Cantera/src/thermo/ThermoPhase.h | 11 +++++++++++ Cantera/src/thermo/phasereport.cpp | 11 ++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Cantera/src/thermo/ThermoPhase.h b/Cantera/src/thermo/ThermoPhase.h index 00357111b..af548ff09 100755 --- a/Cantera/src/thermo/ThermoPhase.h +++ b/Cantera/src/thermo/ThermoPhase.h @@ -2070,6 +2070,17 @@ namespace Cantera { //! typedef for the ThermoPhase class typedef ThermoPhase thermo_t; + + //! Format a summary of the mixture state for output. + /*! + * @param th ThermoPhase object to create a report about + * @param show_thermo Boolean indicating whether the thermo functions + * of the phase should be written out + * + * @return Returns a string containing the report + */ + + std::string report(const ThermoPhase& th, const bool show_thermo = true); } #endif diff --git a/Cantera/src/thermo/phasereport.cpp b/Cantera/src/thermo/phasereport.cpp index a5be76217..57f07b73a 100644 --- a/Cantera/src/thermo/phasereport.cpp +++ b/Cantera/src/thermo/phasereport.cpp @@ -3,7 +3,7 @@ * Output routines for phases */ -/* $Author$ +/* * $Date$ * $Revision$ * @@ -19,22 +19,23 @@ #include "ThermoPhase.h" #include "PureFluidPhase.h" -#include #include "mix_defs.h" +#include + using namespace std; namespace Cantera { - //! Format a summary of the mixture state for output. - /*! + // Format a summary of the mixture state for output. + /* * @param th ThermoPhase object to create a report about * @param show_thermo Boolean indicating whether the thermo functions * of the phase should be written out * * @return Returns a string containing the report */ - std::string report(const ThermoPhase& th, bool show_thermo) { + std::string report(const ThermoPhase& th, const bool show_thermo) { return th.report(show_thermo); }