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:
Markus Blatt 2014-02-20 10:45:08 +01:00
parent b164f4ba95
commit e5b1feb2d5
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ double getCoordinate(T* cc, int i)
template<class T>
double getCoordinate(T t, int i)
{
return t->center()[i];
return (*t)[i];
}
} // end namespace UGGridHelpers

View File

@ -494,7 +494,7 @@ namespace
template<class T>
double getCoordinate(T t, int i)
{
return t->center()[i];
return (*t)[i];
}