-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow keeping y boundary cells at second divertor #40
Conversation
In double-null topology there are y-boundary cells somewhere in the middle of the grid. This commit adds a check for the value of ny_inner to find the position of the second divertor, and adds the boundary cells there if we are keeping y-boundary cells.
Hello @johnomotani! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-08-06 13:09:36 UTC |
Codecov Report
@@ Coverage Diff @@
## master #40 +/- ##
==========================================
+ Coverage 49.7% 51.85% +2.14%
==========================================
Files 8 8
Lines 344 351 +7
Branches 63 63
==========================================
+ Hits 171 182 +11
+ Misses 155 153 -2
+ Partials 18 16 -2
Continue to review full report at Codecov.
|
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.
This is great! Easier to fix than I had imagined.
Only comment I can think of is whether it would be more internally consistent to use the _get_seps()
function rather than ds['jxseps1_2']
for example? Possibly not if we haven't yet deciphered those...
Also might want to merge the guard cells branch into this one |
It's a good point. After thinking a bit, it seems sensible to me to keep separate the changes here (which affect pre-processing files before they are loaded) and |
This seems reasonable to me. I just merged in the final changes to the |
Allow keeping y boundary cells at second divertor
Enables keep_yboundaries option to work in double-null topology.
Should be merged after #39 and #30.