[Thermo] Remove debug exception from Phase::entropyElement298

Returning the special value ENTROPY298_UNKNOWN is (apparently) the expected
behavior if no actual value was provided, and should not result in an exception.
This commit is contained in:
Ray Speth 2017-07-29 22:54:53 -04:00
parent 8d953a9424
commit d4338249fb
2 changed files with 4 additions and 5 deletions

View file

@ -180,7 +180,9 @@ public:
//! @param m Element index
doublereal atomicWeight(size_t m) const;
//! Entropy of the element in its standard state at 298 K and 1 bar
//! Entropy of the element in its standard state at 298 K and 1 bar.
//! If no entropy value was provided when the phase was constructed,
//! returns the value `ENTROPY298_UNKNOWN`.
//! @param m Element index
doublereal entropyElement298(size_t m) const;

View file

@ -132,10 +132,7 @@ doublereal Phase::atomicWeight(size_t m) const
doublereal Phase::entropyElement298(size_t m) const
{
AssertThrowMsg(m_entropy298[m] != ENTROPY298_UNKNOWN,
"Elements::entropy298",
"Entropy at 298 K of element is unknown");
AssertTrace(m < m_mm);
checkElementIndex(m);
return m_entropy298[m];
}