mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 17:20:59 -06:00
[bugfix] Fixes cellCentroidCoordinate implementation.
Somehow this was never defined for CpGrid due to a copy&paste error.
This commit is contained in:
parent
a3acd22f24
commit
57bf00cd27
@ -135,7 +135,7 @@ namespace Opm
|
||||
|
||||
// Compute z coordinates
|
||||
for (int c = 0; c<numCells; ++c){
|
||||
z_[c] = AutoDiffGrid::cellCentroid(grid, c)[2];
|
||||
z_[c] = Opm::UgGridHelpers::cellCentroidCoordinate(grid, c, 2);
|
||||
}
|
||||
|
||||
|
||||
|
@ -359,8 +359,8 @@ beginCellCentroids(const Dune::CpGrid& grid);
|
||||
/// \brief grid The grid.
|
||||
/// \brief cell_index The index of the specific cell.
|
||||
/// \breif coordinate The coordinate index.
|
||||
double cellCentroidCoordinate(const UnstructuredGrid& grid, int cell_index,
|
||||
int coordinate);
|
||||
double cellCentroidCoordinate(const Dune::CpGrid& grid, int cell_index,
|
||||
int coordinate);
|
||||
|
||||
template<>
|
||||
struct FaceCentroidTraits<Dune::CpGrid>
|
||||
|
Loading…
Reference in New Issue
Block a user