ERT-656: Changed GridProperty to take (nx,ny,nz) instead of volume.

This commit is contained in:
Joakim Hove
2014-05-30 10:07:24 +02:00
committed by Andreas Lauser
parent 1d0e3c9772
commit f5c5722508
5 changed files with 71 additions and 26 deletions

View File

@@ -116,8 +116,8 @@ namespace Opm {
void EclipseState::initProperties(DeckConstPtr deck) {
size_t volume = m_eclipseGrid->getCartesianSize();
std::vector<std::pair<std::string , int> > supportedKeywords = {{ "SATNUM" , 0 }};
m_intGridProperties = std::make_shared<GridProperties<int> >(volume , supportedKeywords);
m_intGridProperties = std::make_shared<GridProperties<int> >(m_eclipseGrid->getNX() , m_eclipseGrid->getNY() , m_eclipseGrid->getNZ() , supportedIntKeywords);
if (Section::hasREGIONS(deck)) {
std::shared_ptr<Opm::REGIONSSection> regionsSection(new Opm::REGIONSSection(deck) );