diff --git a/include/cantera/oneD/StFlow.h b/include/cantera/oneD/StFlow.h index 57390253ab6..66f03e1736a 100644 --- a/include/cantera/oneD/StFlow.h +++ b/include/cantera/oneD/StFlow.h @@ -280,6 +280,8 @@ class StFlow : public Domain1D double leftControlPointTemperature() const { if (m_twoPointControl && (m_zLeft != Undef)) { return m_tLeft; + } else { + return NAN; } } @@ -287,6 +289,8 @@ class StFlow : public Domain1D double leftControlPointCoordinate() const { if (m_twoPointControl && (m_zLeft != Undef)) { return m_zLeft; + } else { + return NAN; } } @@ -301,6 +305,8 @@ class StFlow : public Domain1D double rightControlPointTemperature() const { if (m_twoPointControl && (m_zRight != Undef)) { return m_tRight; + } else { + return NAN; } } @@ -308,6 +314,8 @@ class StFlow : public Domain1D double rightControlPointCoordinate() const { if (m_twoPointControl && (m_zRight != Undef)) { return m_zRight; + } else { + return NAN; } }