Added EclipseGrid::cellThickNess() method

This commit is contained in:
Joakim Hove
2015-07-27 17:57:34 +02:00
parent 36279ae421
commit 847fc3ba6f
2 changed files with 12 additions and 0 deletions

View File

@@ -587,6 +587,16 @@ namespace Opm {
return ecl_grid_get_cell_volume3( c_ptr() , static_cast<int>(i),static_cast<int>(j),static_cast<int>(k));
}
double EcliposeGrid::getCellThicknes(size_t i , size_t j , size_t k) const {
assertIJK(i,j,k);
return ecl_grid_get_cell_thickness3( c_ptr() , static_cast<int>(i),static_cast<int>(j),static_cast<int>(k));
}
double EcliposeGrid::getCellThicknes(size_t globalIndex) const {
assertGlobalIndex( globalIndex );
return ecl_grid_get_cell_thickness1( c_ptr() , static_cast<int>(globalIndex));
}
std::tuple<double,double,double> EclipseGrid::getCellCenter(size_t globalIndex) const {
assertGlobalIndex( globalIndex );
{