equel init: pass the type tag to the InitialStateComputer

also, get rid of Opm::extractPvtTableIndex()
This commit is contained in:
Andreas Lauser
2018-01-02 14:28:06 +01:00
parent 028a8c808b
commit 3f875fb8f2
3 changed files with 42 additions and 21 deletions
+4 -4
View File
@@ -93,10 +93,10 @@ public:
unsigned numCartesianElems = gridManager.cartesianSize();
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
EQUIL::DeckDependent::InitialStateComputer<FluidSystem> initialState(materialLawManager,
gridManager.eclState(),
gridManager.grid(),
simulator.problem().gravity()[dimWorld - 1]);
EQUIL::DeckDependent::InitialStateComputer<TypeTag> initialState(materialLawManager,
gridManager.eclState(),
gridManager.grid(),
simulator.problem().gravity()[dimWorld - 1]);
// copy the result into the array of initial fluid states
initialFluidStates_.resize(numCartesianElems);