Added c_ptr() method to EclipseGrid

This commit is contained in:
Joakim Hove 2014-07-16 12:29:31 +02:00
parent b41e66594e
commit e041cf337c
2 changed files with 7 additions and 2 deletions

View File

@ -391,11 +391,15 @@ namespace Opm {
}
void EclipseGrid::fwriteEGRID( const std::string& filename ) {
void EclipseGrid::fwriteEGRID( const std::string& filename ) const {
ecl_grid_fwrite_EGRID( m_grid.get() , filename.c_str() );
}
const ecl_grid_type * EclipseGrid::c_ptr() const {
return m_grid.get();
}
}

View File

@ -57,7 +57,8 @@ namespace Opm {
void exportACTNUM( std::vector<int>& actnum) const;
void resetACTNUM( const int * actnum);
bool equal(const EclipseGrid& other) const;
void fwriteEGRID( const std::string& filename );
void fwriteEGRID( const std::string& filename ) const;
const ecl_grid_type * c_ptr() const;
private:
std::shared_ptr<ecl_grid_type> m_grid;