Added c_ptr() method to EclipseGrid
This commit is contained in:
parent
b41e66594e
commit
e041cf337c
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user