mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added function for querying the face area to the helpers.
This commit is contained in:
parent
f4812c21eb
commit
340da4cd7f
@ -192,6 +192,10 @@ const double* faceNormal(const Dune::CpGrid& grid, int face_index)
|
|||||||
return &(grid.faceNormal(face_index)[0]);
|
return &(grid.faceNormal(face_index)[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double faceArea(const Dune::CpGrid& grid, int face_index)
|
||||||
|
{
|
||||||
|
return grid.faceArea(face_index);
|
||||||
|
}
|
||||||
} // end namespace UgGridHelpers
|
} // end namespace UgGridHelpers
|
||||||
|
|
||||||
namespace AutoDiffGrid
|
namespace AutoDiffGrid
|
||||||
|
@ -382,6 +382,8 @@ FaceCellTraits<Dune::CpGrid>::Type
|
|||||||
faceCells(const Dune::CpGrid& grid);
|
faceCells(const Dune::CpGrid& grid);
|
||||||
|
|
||||||
const double* faceNormal(const Dune::CpGrid& grid, int face_index);
|
const double* faceNormal(const Dune::CpGrid& grid, int face_index);
|
||||||
|
|
||||||
|
double faceArea(const Dune::CpGrid& grid, int face_index);
|
||||||
} // end namespace UgGridHelperHelpers
|
} // end namespace UgGridHelperHelpers
|
||||||
|
|
||||||
namespace AutoDiffGrid
|
namespace AutoDiffGrid
|
||||||
|
Loading…
Reference in New Issue
Block a user