[bugfix] Fixes cellCentroidCoordinate implementation.

Somehow this was never defined for CpGrid due to a copy&paste error.
This commit is contained in:
Markus Blatt 2015-01-13 20:15:57 +01:00
parent a3acd22f24
commit 57bf00cd27
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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>