-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for do concurrent - 2nd try (closes #403) #423
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #423 +/- ##
==========================================
+ Coverage 91.77% 91.81% +0.03%
==========================================
Files 38 43 +5
Lines 13415 13470 +55
==========================================
+ Hits 12312 12367 +55
Misses 1103 1103
☔ View full report in Codecov by Sentry. |
Ready for first review from @arporter or @sergisiso |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done.
There are a few pylint things to clean-up and I think we could do with one or more slightly more 'functional' tests where we check that 'do concurrent' is parsed correctly in the context of a whole routine - i.e. as a child of a routine, and if-block, another loop...
src/fparser/two/tests/fortran2008/test_action_term_do_construct_r824.py
Outdated
Show resolved
Hide resolved
Ready for next review from @arporter |
Perhaps the rule should be that any classes that simply subclass another class in a different API so that subsequent classes use the the new API, should have functional tests? I think that would then cover all cases and more. I've not done this in this PR but would be happy to do so if the reviewer thinks this is a better solution than the single functional test I've added for one case when using concurrent. |
Something like that, yes. (I don't quite follow what you mean.) In this case I'd be happier if we at least check for the case where the DO CONCURRENT is a child of:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tidying up. Almost there now. There appears to be one change that you've not committed and I would like the tests extended a bit.
I've added functional tests where the modified classes are purely there to connect the f2003 to the f2008 concurrent classes. I've just added basic functional tests as everything else will work fine, the important thing is that the different flavours of f2008 concurrent can be parsed from f2003 classes (I've just used program). Ready for next review from @arporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes.
All good now.
Will proceed to merge.
The f2008
do concurrent
functionality has already been added but does not get called as the original f2003 classes get called directly from other f2003 classes. In this PR, 2008 versions of these other f2003 classes are added so all should be well.