mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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
|
// Compute z coordinates
|
||||||
for (int c = 0; c<numCells; ++c){
|
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 grid The grid.
|
||||||
/// \brief cell_index The index of the specific cell.
|
/// \brief cell_index The index of the specific cell.
|
||||||
/// \breif coordinate The coordinate index.
|
/// \breif coordinate The coordinate index.
|
||||||
double cellCentroidCoordinate(const UnstructuredGrid& grid, int cell_index,
|
double cellCentroidCoordinate(const Dune::CpGrid& grid, int cell_index,
|
||||||
int coordinate);
|
int coordinate);
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct FaceCentroidTraits<Dune::CpGrid>
|
struct FaceCentroidTraits<Dune::CpGrid>
|
||||||
|
Loading…
Reference in New Issue
Block a user