Fix invalid unchecked cast to StFlow#1226
Conversation
The domain between two boundaries isn't necessarily an StFlow object, as exemplified by the Blasius BVP sample code. Fixes Cantera#1224
Codecov Report
@@ Coverage Diff @@
## main #1226 +/- ##
=======================================
Coverage 65.44% 65.44%
=======================================
Files 327 327
Lines 46321 46327 +6
Branches 19688 19694 +6
=======================================
+ Hits 30314 30318 +4
Misses 13475 13475
- Partials 2532 2534 +2
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
bryanwweber
left a comment
There was a problem hiding this comment.
Wow! How did you find this?
|
I had to run the |
|
Can you tell if this is due to a recent change, or had this been around for a while and we just didn't notice it? I imagine bisecting this isn't worth it 🤣 |
|
Kudos! |
|
The offending code has been there since the beginning of the commit history that we have (2003). I guess one reason we didn't see this before is that we weren't regularly testing the samples until more recently (#883). |
The domain between two boundaries isn't necessarily an StFlow object,
as exemplified by the Blasius BVP sample code.
Fixes #1224
Changes proposed in this pull request
StFlow*withdynamic_castIf applicable, fill in the issue number this pull request is fixing
Closes #1224
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build&scons test) and unit tests address code coverage