mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Fix two-point functions with missing return values
This commit is contained in:
parent
3ba333a051
commit
e7449ae072
@ -280,6 +280,8 @@ public:
|
||||
double leftControlPointTemperature() const {
|
||||
if (m_twoPointControl && (m_zLeft != Undef)) {
|
||||
return m_tLeft;
|
||||
} else {
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
@ -287,6 +289,8 @@ public:
|
||||
double leftControlPointCoordinate() const {
|
||||
if (m_twoPointControl && (m_zLeft != Undef)) {
|
||||
return m_zLeft;
|
||||
} else {
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
@ -301,6 +305,8 @@ public:
|
||||
double rightControlPointTemperature() const {
|
||||
if (m_twoPointControl && (m_zRight != Undef)) {
|
||||
return m_tRight;
|
||||
} else {
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
@ -308,6 +314,8 @@ public:
|
||||
double rightControlPointCoordinate() const {
|
||||
if (m_twoPointControl && (m_zRight != Undef)) {
|
||||
return m_zRight;
|
||||
} else {
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user