Added free method to get the sum of the the faces that are attached to every cell.

This commit is contained in:
Markus Blatt
2014-02-21 11:50:36 +01:00
parent e5b1feb2d5
commit 842667eab2
2 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,11 @@ int dimensions(const UnstructuredGrid& grid)
{
return grid.dimensions;
}
int numCellFaces(const UnstructuredGrid& grid)
{
return grid.cell_facepos[grid.number_of_cells];
}
const int* globalCell(const UnstructuredGrid& grid)
{
return grid.global_cell;