Skip to content

Commit

Permalink
Fix two-point functions with missing return values
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jun 3, 2024
1 parent cc518d5 commit e8a507b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/cantera/oneD/StFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,17 @@ class StFlow : public Domain1D
double leftControlPointTemperature() const {

Check warning on line 280 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L280

Added line #L280 was not covered by tests
if (m_twoPointControl && (m_zLeft != Undef)) {
return m_tLeft;

Check warning on line 282 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L282

Added line #L282 was not covered by tests
} else {
return NAN;

Check warning on line 284 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L284

Added line #L284 was not covered by tests
}
}

//! Returns the z-coordinate of the left control point
double leftControlPointCoordinate() const {

Check warning on line 289 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L289

Added line #L289 was not covered by tests
if (m_twoPointControl && (m_zLeft != Undef)) {
return m_zLeft;

Check warning on line 291 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L291

Added line #L291 was not covered by tests
} else {
return NAN;

Check warning on line 293 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L293

Added line #L293 was not covered by tests
}
}

Expand All @@ -301,13 +305,17 @@ class StFlow : public Domain1D
double rightControlPointTemperature() const {

Check warning on line 305 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L305

Added line #L305 was not covered by tests
if (m_twoPointControl && (m_zRight != Undef)) {
return m_tRight;

Check warning on line 307 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L307

Added line #L307 was not covered by tests
} else {
return NAN;

Check warning on line 309 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L309

Added line #L309 was not covered by tests
}
}

//! Returns the z-coordinate of the right control point
double rightControlPointCoordinate() const {

Check warning on line 314 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L314

Added line #L314 was not covered by tests
if (m_twoPointControl && (m_zRight != Undef)) {
return m_zRight;

Check warning on line 316 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L316

Added line #L316 was not covered by tests
} else {
return NAN;

Check warning on line 318 in include/cantera/oneD/StFlow.h

View check run for this annotation

Codecov / codecov/patch

include/cantera/oneD/StFlow.h#L318

Added line #L318 was not covered by tests
}
}

Expand Down

0 comments on commit e8a507b

Please sign in to comment.