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:
parent
b164f4ba95
commit
e5b1feb2d5
@ -215,7 +215,7 @@ double getCoordinate(T* cc, int i)
|
|||||||
template<class T>
|
template<class T>
|
||||||
double getCoordinate(T t, int i)
|
double getCoordinate(T t, int i)
|
||||||
{
|
{
|
||||||
return t->center()[i];
|
return (*t)[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace UGGridHelpers
|
} // end namespace UGGridHelpers
|
||||||
|
@ -494,7 +494,7 @@ namespace
|
|||||||
template<class T>
|
template<class T>
|
||||||
double getCoordinate(T t, int i)
|
double getCoordinate(T t, int i)
|
||||||
{
|
{
|
||||||
return t->center()[i];
|
return (*t)[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user