Merge pull request #3204 from akva2/collect_separate_compile_unit

CollectDataToIORank: move to separate compile unit
This commit is contained in:
Markus Blatt
2021-05-07 08:55:47 +02:00
committed by GitHub
5 changed files with 940 additions and 864 deletions

View File

@@ -146,9 +146,15 @@ BOOST_AUTO_TEST_CASE(Summary)
const std::string casename = "SUMMARY_DECK_NON_CONSTANT_POROSITY";
auto simulator = initSimulator<TypeTag>(filename.data());
using Vanguard = Opm::GetPropType<TypeTag, Opm::Properties::Vanguard>;
typedef Opm::CollectDataToIORank< Vanguard > CollectDataToIORankType;
CollectDataToIORankType collectToIORank(simulator->vanguard());
using Grid = Opm::GetPropType<TypeTag, Opm::Properties::Grid>;
using EquilGrid = Opm::GetPropType<TypeTag, Opm::Properties::EquilGrid>;
using GridView = Opm::GetPropType<TypeTag, Opm::Properties::GridView>;
using CollectDataToIORankType = Opm::CollectDataToIORank<Grid,EquilGrid,GridView>;
CollectDataToIORankType collectToIORank(simulator->vanguard().grid(),
simulator->vanguard().equilGrid(),
simulator->vanguard().gridView(),
simulator->vanguard().cartesianIndexMapper(),
simulator->vanguard().equilCartesianIndexMapper());
Opm::EclOutputBlackOilModule<TypeTag> eclOutputModule(*simulator, {}, collectToIORank);
typedef Opm::EclWriter<TypeTag> EclWriterType;