Added method WachspressCoord::adjacentFaces().
This commit is contained in:
parent
1b31b207fe
commit
ad2a237657
@ -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
|
/// Compute generalized barycentric coordinates for some point x
|
||||||
/// with respect to the vertices of a grid cell.
|
/// with respect to the vertices of a grid cell.
|
||||||
/// \param[in] cell Cell in which to compute coordinates.
|
/// \param[in] cell Cell in which to compute coordinates.
|
||||||
|
@ -65,10 +65,14 @@ namespace Opm
|
|||||||
double volume; // Defined as det(N) where N is the matrix of adjacent face normals.
|
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.
|
/// \return The corner info container.
|
||||||
const SparseTable<CornerInfo>& cornerInfo() const;
|
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:
|
private:
|
||||||
const UnstructuredGrid& grid_;
|
const UnstructuredGrid& grid_;
|
||||||
SparseTable<CornerInfo> corner_info_; // Corner info by cell.
|
SparseTable<CornerInfo> corner_info_; // Corner info by cell.
|
||||||
|
Loading…
Reference in New Issue
Block a user