Added free method to get the sum of the the faces that are attached to every cell.
This commit is contained in:
1 parent
e5b1feb2d5
commit
842667eab2
2 files changed
+8
No files matched your search
@@ -17,6 +17,11 @@ int dimensions(const UnstructuredGrid& grid)
|
|||||||
{
|
{
|
||||||
return grid.dimensions;
|
return grid.dimensions;
|
||||||
}
|
}
|
||||||
|
int numCellFaces(const UnstructuredGrid& grid)
|
||||||
|
{
|
||||||
|
return grid.cell_facepos[grid.number_of_cells];
|
||||||
|
}
|
||||||
|
|
||||||
const int* globalCell(const UnstructuredGrid& grid)
|
const int* globalCell(const UnstructuredGrid& grid)
|
||||||
{
|
{
|
||||||
return grid.global_cell;
|
return grid.global_cell;
|
||||||
|
|||||||
@@ -100,6 +100,9 @@ int numFaces(const UnstructuredGrid& grid);
|
|||||||
/// \brief Get the dimensions of a grid
|
/// \brief Get the dimensions of a grid
|
||||||
int dimensions(const UnstructuredGrid& grid);
|
int dimensions(const UnstructuredGrid& grid);
|
||||||
|
|
||||||
|
/// \brief Get the number of faces, where each face counts as many times as there are adjacent faces
|
||||||
|
int numCellFaces(const UnstructuredGrid& grid);
|
||||||
|
|
||||||
/// \brief Get the cartesion dimension of the underlying structured grid.
|
/// \brief Get the cartesion dimension of the underlying structured grid.
|
||||||
const int* cartDims(const UnstructuredGrid& grid);
|
const int* cartDims(const UnstructuredGrid& grid);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user