adapt to the opm-core API change in the SaturationFunctionsFromDeck to always use non-uniform tables

This commit is contained in:
Andreas Lauser 2015-06-08 16:56:44 +02:00
parent 7a32644342
commit 78f7097798

View File

@ -235,10 +235,10 @@ BlackoilPropsAdFromDeck::BlackoilPropsAdFromDeck(const BlackoilPropsAdFromDeck&
OPM_THROW(std::runtime_error, "Input has VAPPARS, but missing VAPOIL and/or DISGAS\n");
}
SaturationPropsFromDeck<SatFuncGwsegNonuniform>* ptr
= new SaturationPropsFromDeck<SatFuncGwsegNonuniform>();
SaturationPropsFromDeck* ptr
= new SaturationPropsFromDeck();
satprops_.reset(ptr);
ptr->init(deck, eclState, number_of_cells, global_cell, begin_cell_centroids, dimension, -1);
ptr->init(deck, eclState, number_of_cells, global_cell, begin_cell_centroids, dimension);
if (phase_usage_.num_phases != satprops_->numPhases()) {
OPM_THROW(std::runtime_error, "BlackoilPropsAdFromDeck::BlackoilPropsAdFromDeck() - "