Added function for querying the face area to the helpers.

This commit is contained in:
Markus Blatt 2014-02-27 12:54:54 +01:00
parent f4812c21eb
commit 340da4cd7f
2 changed files with 6 additions and 0 deletions

View File

@ -192,6 +192,10 @@ const double* faceNormal(const Dune::CpGrid& grid, int face_index)
return &(grid.faceNormal(face_index)[0]);
}
double faceArea(const Dune::CpGrid& grid, int face_index)
{
return grid.faceArea(face_index);
}
} // end namespace UgGridHelpers
namespace AutoDiffGrid

View File

@ -382,6 +382,8 @@ FaceCellTraits<Dune::CpGrid>::Type
faceCells(const Dune::CpGrid& grid);
const double* faceNormal(const Dune::CpGrid& grid, int face_index);
double faceArea(const Dune::CpGrid& grid, int face_index);
} // end namespace UgGridHelperHelpers
namespace AutoDiffGrid