(closes #3460) Fix issues with recursive datatype copies - #3521
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3521 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 397 397
Lines 55577 55579 +2
=========================================
+ Hits 55577 55579 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@LonelyCat124 In addition to the recursive loops I found that copying partial_datatypes was chaning the original tree in some cases, so I added additional copy calls until this was not the case. I am not sure I fully understand the whole recursive copy path which makes me a bit nervous, but I made the new test quite complete in testing both the consistency of the new copy and that the original remains unchanged (so at least I know that 2 problems currently on master are fixed by this) |
|
Ah, it failed the integrations, I will look at this next week |
|
After looking at the failed test I think the input fortran is wrong but it was unexpectedly fixed by copy not working :) The input for test and once the But inlining shouldn't change the original. After fixing the copy behaviour I get: And it fails to compile with @arporter Can I remove this "nasty" type, or should I replace it with something else? |
Ah! I hadn't realised you weren't allowed a dummy argument here. The only other thing I can come up with is a character string with len given by a dummy argument - pls could you try adding that instead of the "nasty" type? |
|
The len symbols are not processed by inlining, and it results in a dangling symbol, I will attempt to fix it here. |
|
That's unraveling some more issues:
|
|
@arporter @LonelyCat124 This is finally ready for review, I haven't fixed the inline issues as these already exist before this PR and the fix seems complicated and out of scope here, but I opened issues explaining them. |
|
I'll take a look after lunch |
LonelyCat124
left a comment
There was a problem hiding this comment.
@sergisiso One small query, but otherwise this looks fine to me. I'll set ITs running again as well to be safe.
|
@LonelyCat124 This is ready for another look |
LonelyCat124
left a comment
There was a problem hiding this comment.
@sergisiso Small comment/query about the xfailing test. ITs were otherwise all green so once resolved we can merge.
|
@LonelyCat124 Ready for another look (CI-permitting) |
LonelyCat124
left a comment
There was a problem hiding this comment.
All green now, fixes the original issue - will proceed to merge.
No description provided.