mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2425 from blattms/no_serialization_polymermodule
Rebased #2419: changed: no need to serialize PolymerModule any longer
This commit is contained in:
@@ -608,16 +608,10 @@ public:
|
|||||||
this->model().addOutputModule(new VtkEclTracerModule<TypeTag>(simulator));
|
this->model().addOutputModule(new VtkEclTracerModule<TypeTag>(simulator));
|
||||||
// Tell the black-oil extensions to initialize their internal data structures
|
// Tell the black-oil extensions to initialize their internal data structures
|
||||||
const auto& vanguard = simulator.vanguard();
|
const auto& vanguard = simulator.vanguard();
|
||||||
const auto& comm = this->gridView().comm();
|
|
||||||
SolventModule::initFromState(vanguard.eclState(), vanguard.schedule());
|
SolventModule::initFromState(vanguard.eclState(), vanguard.schedule());
|
||||||
|
PolymerModule::initFromState(vanguard.eclState());
|
||||||
FoamModule::initFromState(vanguard.eclState());
|
FoamModule::initFromState(vanguard.eclState());
|
||||||
BrineModule::initFromState(vanguard.eclState());
|
BrineModule::initFromState(vanguard.eclState());
|
||||||
if (comm.rank() == 0) {
|
|
||||||
PolymerModule::initFromDeck(vanguard.deck(), vanguard.eclState());
|
|
||||||
}
|
|
||||||
|
|
||||||
EclMpiSerializer ser(comm);
|
|
||||||
ser.staticBroadcast<PolymerModule>();
|
|
||||||
|
|
||||||
// create the ECL writer
|
// create the ECL writer
|
||||||
eclWriter_.reset(new EclWriterType(simulator));
|
eclWriter_.reset(new EclWriterType(simulator));
|
||||||
|
|||||||
Reference in New Issue
Block a user