-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Trivial] Reorganize LogicalLocation
code
#1028
Conversation
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.
Good reorg 👍
Are you planning to merge this to the forrest branch or later (separately) into develop once forrest is merged? |
@pgrete: I was thinking later after the forest branch is merged. This would just make the diff even bigger I think. |
void SetNeighbor(LogicalLocation inloc, int irank, int ilevel, int igid, int ilid, | ||
int iox1, int iox2, int iox3, NeighborConnect itype, int ibid, | ||
int itargetid, int ifi1 = 0, int ifi2 = 0); |
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 no longer used anywhere (constructors are used instead), so I removed it.
#ifndef MESH_FOREST_BLOCK_OWNERSHIP_HPP_ | ||
#define MESH_FOREST_BLOCK_OWNERSHIP_HPP_ |
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 previously sat in logical_location.*
@@ -53,31 +53,6 @@ bool LogicalLocation::Contains(const LogicalLocation &containee) const { | |||
return (shifted_lx1 == lx1()) && (shifted_lx2 == lx2()) && (shifted_lx3 == lx3()); | |||
} | |||
|
|||
std::array<int, 3> LogicalLocation::GetOffset(const LogicalLocation &neighbor, |
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.
unused
// TODO(LFR): Remove this | ||
block_ownership_t | ||
DetermineOwnership(const LogicalLocation &main_block, |
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.
just moved for now, next forest PR removes this though.
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.
LGTM I think this reorg makes sense.
PR Summary
Just move some files around and split up some files to make the code easier to navigate. Also removes a little bit of dead code.
PR Checklist