Merge branch 'master' into cvm

This commit is contained in:
graham
2011-05-13 16:10:04 +01:00

View File

@ -499,7 +499,7 @@ Foam::point Foam::face::centre(const pointField& points) const
const label nPoints = size(); const label nPoints = size();
// If the face is a triangle, do a direct calculation // If the face is a triangle, do a direct calculation
if (nPoints) if (nPoints == 3)
{ {
return return
(1.0/3.0) (1.0/3.0)