mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 01:42:01 -05:00
Pass enableSwatinit to the OPM initialisation
Only apply swatinit in the initialization if Swatinit is enabled.
This commit is contained in:
1 parent
3d9f1af26b
commit
ef3de796bc
1 file changed
+5
-1
@@ -137,13 +137,17 @@ public:
|
||||
/*numFaces=*/0, // we don't care here
|
||||
opmPhaseUsage.num_phases);
|
||||
|
||||
// tell the initializers whether SWATINIT should be applied or not.
|
||||
bool enableSwatInit = GET_PROP_VALUE(TypeTag, EnableSwatinit);
|
||||
|
||||
// do the actual computation.
|
||||
Opm::initStateEquil(equilGrid,
|
||||
opmBlackoilProps,
|
||||
gridManager.deck(),
|
||||
gridManager.eclState(),
|
||||
simulator.problem().gravity()[dimWorld - 1],
|
||||
opmBlackoilState);
|
||||
opmBlackoilState,
|
||||
enableSwatInit);
|
||||
|
||||
std::vector<int> localToEquilIndex( numElems, -1 );
|
||||
for( unsigned int elemIdx = 0; elemIdx < numElems; ++elemIdx )
|
||||
|
||||
Reference in new issue
Block a user