Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

aritorto
Copy link
Member

@aritorto aritorto commented Sep 27, 2024

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

Copy link
Member

@blattms blattms left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo. should be related.


// 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_;
Copy link
Member

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

Copy link
Member Author

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!

@aritorto
Copy link
Member Author

jenkins build this please

@aritorto
Copy link
Member Author

aritorto commented Oct 1, 2024

jenkins build this please

@aritorto
Copy link
Member Author

aritorto commented Oct 7, 2024

jenkins build this opm-simulators=5633 please

1 similar comment
@aritorto
Copy link
Member Author

aritorto commented Oct 7, 2024

jenkins build this opm-simulators=5633 please

@aritorto
Copy link
Member Author

Replace/improve by #766

@aritorto aritorto closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants