mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-21 16:57:25 -06:00
add cartesianCoordianteLevel in ALUCartIdxMapp, used in RelperDiag
This commit is contained in:
parent
5fe1eafb34
commit
8017ff9a02
@ -241,6 +241,15 @@ public:
|
||||
throw std::invalid_argument("cartesianCoordinate not implemented for dimension " + std::to_string(dimension));
|
||||
}
|
||||
|
||||
/** \brief Only for unifying calls with CartesianIndexMapper<CpGrid> where levels are relevant */
|
||||
void cartesianCoordinateLevel(const int compressedElementIndex, std::array<int, dimension>& coords, int level) const
|
||||
{
|
||||
if (level) {
|
||||
throw std::invalid_argument("Invalid level.\n");
|
||||
}
|
||||
cartesianCoordinate(compressedElementIndex, coords);
|
||||
}
|
||||
|
||||
template <class GridView>
|
||||
std::unique_ptr<GlobalIndexDataHandle<GridView> > dataHandle(const GridView& gridView)
|
||||
{
|
||||
|
@ -850,7 +850,7 @@ namespace Opm {
|
||||
std::string cellIdx;
|
||||
{
|
||||
std::array<int, 3> ijk;
|
||||
cartesianIndexMapper.cartesianCoordinate(c, ijk);
|
||||
cartesianIndexMapper.cartesianCoordinateLevel(c, ijk, 0);
|
||||
cellIdx = "(" + std::to_string(ijk[0]) + ", " +
|
||||
std::to_string(ijk[1]) + ", " +
|
||||
std::to_string(ijk[2]) + ")";
|
||||
|
Loading…
Reference in New Issue
Block a user