mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
[bugfix] Make initialization work in parallel for flow_ebos.
This commit is contained in:
@@ -128,7 +128,18 @@ namespace Opm
|
||||
void setupGridAndProps()
|
||||
{
|
||||
Dune::CpGrid& grid = ebosSimulator_->gridManager().grid();
|
||||
Base::material_law_manager_ = ebosSimulator_->problem().materialLawManager();
|
||||
|
||||
//Base::material_law_manager_ = ebosSimulator_->problem().materialLawManager();
|
||||
|
||||
grid.switchToGlobalView();
|
||||
// Create material law manager.
|
||||
std::vector<int> compressedToCartesianIdx;
|
||||
Opm::createGlobalCellArray(grid, compressedToCartesianIdx);
|
||||
material_law_manager_.reset(new MaterialLawManager());
|
||||
material_law_manager_->initFromDeck(*deck_, *eclipse_state_, compressedToCartesianIdx);
|
||||
|
||||
|
||||
|
||||
grid_init_.reset(new GridInit<Grid>());
|
||||
grid_init_->setGrid(grid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user