From e8a507befeef032c41ac9dfe50e93d925cc35e2e Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sun, 2 Jun 2024 17:32:55 -0400 Subject: [PATCH] Fix two-point functions with missing return values --- include/cantera/oneD/StFlow.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } }