Added error interfaces to ThermoPhase.h for H298MODIFY_CAPABILITY when

it is turned off
This commit is contained in:
Harry Moffat 2008-12-30 03:17:07 +00:00
parent 3f6b4b71c5
commit 2bfc553cfb
2 changed files with 16 additions and 2 deletions

View file

@ -22,9 +22,14 @@ using namespace std;
namespace Cantera {
Phase::Phase() :
m_kk(-1), m_ndim(3), m_index(-1),
Constituents(),
State(),
m_kk(-1),
m_ndim(3),
m_index(-1),
m_xml(new XML_Node("phase")),
m_id("<phase>"), m_name("")
m_id("<phase>"),
m_name("")
{
}

View file

@ -786,7 +786,16 @@ namespace Cantera {
virtual void modifyOneHf298SS(const int k, const doublereal Hf298New) {
m_spthermo->modifyOneHf298(k, Hf298New);
}
#else
doublereal Hf298SS(const int k) const {
return err("Hf298SS - H298MODIFY_CAPABILITY not compiled in");
}
virtual void modifyOneHf298SS(const int k, const doublereal Hf298New) {
return err("Hf298SS - H298MODIFY_CAPABILITY not compiled in");
}
#endif
//! Maximum temperature for which the thermodynamic data for the species
//! are valid.
/*!