[bugfix] Take normalized face normals into account when calculating tpfa.

At least for Cpgrid the face normal is normalized which has to be taken into
account in tpfa_htrans_compute.
We therefore multiply the facenormal with the face area in cases (read Cpgrid)
where this needed.
This commit is contained in:
Markus Blatt
2014-02-27 12:28:22 +01:00
parent 45edfc8848
commit baa0261132
3 changed files with 54 additions and 3 deletions

View File

@@ -176,6 +176,10 @@ faceCentroid(const UnstructuredGrid& grid, int face_index);
/// \param face_index The index of the face in the grid.
const double* faceNormal(const UnstructuredGrid& grid, int face_index);
/// \brief Get the area of a face
/// \param grid The grid that the face is part of.
/// \param face_index The index of the face in the grid.
double faceArea(const UnstructuredGrid& grid, int face_index);
/// \brief Maps the grid type to the associated type of the cell to faces mapping.
///