mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Assume begin_cell_centroid to what the name tells us: an iterator over then centroids.
Therfore we do not need to call center() in getCoordinate. This is done in the iterator class returned from CpGrid.
This commit is contained in:
@@ -494,7 +494,7 @@ namespace
|
||||
template<class T>
|
||||
double getCoordinate(T t, int i)
|
||||
{
|
||||
return t->center()[i];
|
||||
return (*t)[i];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user