[refactor] Remove non-DUNE methods in CartesianIndexMapper
Based on OPM/opm-grid#765
Improvement of OPM/opm-grid#765 since it removes the non-DUNE methods added in CartesianIndexMapper.
Create a template class LevelCartesianIndexMapper. It mimics the Dune::CartesianIndexMapper class. Difference: methods have "int level" as a function parameter. Specialization for CpGrid and PolyhedralGrid are added accordingly.
PR OPM/opm-simulators#5649 deals with the AluGrid specialization. Additionally, it refactors the code where those non-DUNE methods were used (RelpermDiagnostics).
Not relevant for the Reference Manual.
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
@blattms, @bska I might need some help to understand what's wrong here.
These two PRs (OPM/opm-grid#766 and OPM/opm-simulators#5649) are based on two previous ones. So maybe the issue is also there. Let's see what I get in OPM/opm-grid#765 and OPM/opm-simulators#5633
The "first" pair of PRs passes the tests.
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
Also, can you squash/restructure the commits a bit, like:
- instead of commits like "add draft file" "remove draft file", the draft file does not appear at all anymore
- when you add the files, directly add the headers in cmake for that file in the same commit
I know that might be some work, yet ideally you're able to check out a commit from the history and the code will be in a working condition :)
Thanks!!
Thanks for your first feedback. I always rewrite history before merging for so those weird commit messages won't be there, and so on. I'll keep that in mind for the future though!
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
jenkins build this opm-simulators=5649 please
Hopefully now, all the comments are addressed correctly. One last jenikins run! Thanks @lisajulia :)
jenkins build this opm-simulators=5649 please