Merge pull request #468 from iLoop2/OPM-203
Added suport for converting of Metric grid values
This commit is contained in:
@@ -606,9 +606,9 @@ namespace Opm {
|
||||
}
|
||||
|
||||
|
||||
void EclipseGrid::fwriteEGRID( const std::string& filename ) const {
|
||||
void EclipseGrid::fwriteEGRID( const std::string& filename, bool output_metric ) const {
|
||||
assertCellInfo();
|
||||
ecl_grid_fwrite_EGRID( m_grid.get() , filename.c_str() );
|
||||
ecl_grid_fwrite_EGRID( m_grid.get() , filename.c_str(), output_metric );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ 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 ) const;
|
||||
void fwriteEGRID( const std::string& filename, bool output_metric ) const;
|
||||
const ecl_grid_type * c_ptr() const;
|
||||
private:
|
||||
std::shared_ptr<ecl_grid_type> m_grid;
|
||||
|
||||
@@ -668,7 +668,7 @@ BOOST_AUTO_TEST_CASE(Fwrite) {
|
||||
Opm::DeckConstPtr deck = parser->parseString(deckData) ;
|
||||
Opm::EclipseGrid grid1(deck );
|
||||
|
||||
grid1.fwriteEGRID( "TEST.EGRID" );
|
||||
grid1.fwriteEGRID( "TEST.EGRID" , true);
|
||||
|
||||
Opm::EclipseGrid grid2( "TEST.EGRID" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user