Minimal support for cases with more than 2 X-points - #41
Conversation
…faces + removing some compiler warnings
|
Added some comments. Note mainly for me: Merging this will require some adaptation of my general topology PR, which I will handle after it gets reviewed by the Leuven team. |
|
@jlore Sorry, I do not see your comments. |
|
Ok, I tried commenting on the in-line code since I don't have this branch checked out. I'll try to @ you there to see if they are visible |
|
I still see nothing. |
|
I had to "submit review" |
…purious ones + bug fixes suggested by Jeremy Lore
|
I would appreciate from the reviewers (@antonellozito @SVandenKerkhof @WouterDekeyser @SjoerdPR ) at least the courtesy of replying to my PRs with no more than an order of magnitude slower than I respond to theirs. |
|
Missed that, and you are correct in your comment. My comment on 1067 can be ignored |
|
Sorry, indeed I did not give the official OK in the PR even though I had given my informal OK in the Slack channel... apologies for that. |
|
Also agree with current changes - pending outcome of discussions on implementation of more generalized topologies. |
|
I was asked to check if a specific case (that used to segfault before manually fixing face regions) segfaulted with this branch. With the regular Lines 1249 to 1250 in c550bf3
I am not planning to continue with this case for my work, and it seems like a 50/50 whether this is an error with the PR or an error in my case that simply interacts poorly with the changes made in the PR. To avoid wasting time on the latter, I think the most efficient way to proceed would be to test the changes in this PR with a wide-grid case that is known to be well set-up, rather than my case. |
The
mappingdata structure now stores the indices of the active and inactive X-points, and the code uses them instead of hard-coded indices1and2. The active X-point is the first one to be found that is a vertex to a cell inside volumetric region 1 (the core). The inactive X-pt is chosen to be the X-point closest in Psi to the active X-point. If they do not lie on the same flux surface, the difference between DDN_TOP and DDN_BOTTOM topologies is simply whether the X-point is above or below the z=0 plane.