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 committed 2014-02-20 10:45:08 +01:00
1 parent b164f4ba95
commit e5b1feb2d5
2 files changed
+2 -2

No files matched your search

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