Added method WachspressCoord::adjacentFaces().

This commit is contained in:
Atgeirr Flø Rasmussen 2012-10-29 15:14:34 +01:00
parent 1b31b207fe
commit ad2a237657
2 changed files with 14 additions and 1 deletions

View File

@ -177,6 +177,15 @@ namespace Opm
/// The class stores some info for each corner.
/// \return The corner info container.
const std::vector<int>& WachspressCoord::adjacentFaces() const
{
return adj_faces_;
}
/// Compute generalized barycentric coordinates for some point x
/// with respect to the vertices of a grid cell.
/// \param[in] cell Cell in which to compute coordinates.

View File

@ -65,10 +65,14 @@ namespace Opm
double volume; // Defined as det(N) where N is the matrix of adjacent face normals.
};
/// The class stores some info for each corner.
/// The class stores some info for each corner, made accessible for user convenience.
/// \return The corner info container.
const SparseTable<CornerInfo>& cornerInfo() const;
/// The class stores adjacent faces for each corner, made accessible for user convenience.
/// \return The vector of adjacent faces. Size = dim * #corners.
const std::vector<int>& adjacentFaces() const;
private:
const UnstructuredGrid& grid_;
SparseTable<CornerInfo> corner_info_; // Corner info by cell.