-
Notifications
You must be signed in to change notification settings - Fork 78
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
Local Cartesian Index for level grids #765
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.
This is missing a test where there is a cell inactive (ACTNUM is 0) in the set of parent cells.
Please make the test better.
} | ||
/// Additional methods realted to LGRs. END |
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.
typo. should be related.
opm/grid/cpgrid/CpGridData.hpp
Outdated
|
||
// Only relevant for refined level grids. | ||
/** @brief Map from global_cell_lgr to leaf index set. Only relevant for refined level grids. */ | ||
std::unordered_map<int,int> globalCellLevel_to_leafIdx_; |
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 should not be a member of CpGridData. If people need then this is only for a short time. Then this should be setup outside of the grid..
Take a look at:
- grid/utility/cartesianToCompressed.cpp
- grid/utility/cartesianToCompressed.hpp
- grid/utility/compressedToCartesian.cpp
- grid/utility/compressedToCartesian.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.
It might be time to take another look to #687 too. Thanks for your feedback!
f1f25d0
to
eab87ce
Compare
jenkins build this please |
d300f54
to
15a05f4
Compare
jenkins build this please |
jenkins build this opm-simulators=5633 please |
1 similar comment
jenkins build this opm-simulators=5633 please |
Replace/improve by #766 |
For each level grid, a map is created from global cell values (from that level), to leaf index set.
To this aim, CartesianIndexMapper has been extended - due to local Cartesian Index for each LGR for CpGrid, therefore the specializations for all grids have been adapted too (CpGrid, PolyhedralGrid, and in a separately PR, AluGrid OPM/opm-simulators#5633).
Based on #762 (which has been merged)
Not relevant for the Reference Manual