diff --git a/examples/compute_eikonal_from_files.cpp b/examples/compute_eikonal_from_files.cpp index 5574556a..49346a5a 100644 --- a/examples/compute_eikonal_from_files.cpp +++ b/examples/compute_eikonal_from_files.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/opm/core/grid/GridManager.cpp b/opm/core/grid/GridManager.cpp index e864d316..fd23f0f8 100644 --- a/opm/core/grid/GridManager.cpp +++ b/opm/core/grid/GridManager.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include diff --git a/opm/core/io/eclipse/EclipseReader.cpp b/opm/core/io/eclipse/EclipseReader.cpp index 1e947eea..df064ca2 100644 --- a/opm/core/io/eclipse/EclipseReader.cpp +++ b/opm/core/io/eclipse/EclipseReader.cpp @@ -25,6 +25,11 @@ #include #include +#include +#include +#include +#include + #include #include diff --git a/opm/core/io/eclipse/EclipseWriteRFTHandler.cpp b/opm/core/io/eclipse/EclipseWriteRFTHandler.cpp index 7f3680ff..8489ffcf 100644 --- a/opm/core/io/eclipse/EclipseWriteRFTHandler.cpp +++ b/opm/core/io/eclipse/EclipseWriteRFTHandler.cpp @@ -28,6 +28,7 @@ #include +#include #include #include diff --git a/opm/core/io/eclipse/EclipseWriteRFTHandler.hpp b/opm/core/io/eclipse/EclipseWriteRFTHandler.hpp index 97afeecb..b0d8f9ed 100644 --- a/opm/core/io/eclipse/EclipseWriteRFTHandler.hpp +++ b/opm/core/io/eclipse/EclipseWriteRFTHandler.hpp @@ -31,6 +31,9 @@ namespace Opm { + class EclipseGrid; + class Well; + namespace EclipseWriterDetails { @@ -43,8 +46,8 @@ namespace EclipseWriterDetails { void writeTimeStep(const std::string& filename, const ert_ecl_unit_enum ecl_unit, const SimulatorTimerInterface& simulatorTimer, - std::vector& wells, - EclipseGridConstPtr eclipseGrid, + std::vector>& wells, + std::shared_ptr< const EclipseGrid > eclipseGrid, std::vector& pressure, std::vector& swat, std::vector& sgas); @@ -53,9 +56,9 @@ namespace EclipseWriterDetails { private: - ecl_rft_node_type * createEclRFTNode(WellConstPtr well, + ecl_rft_node_type * createEclRFTNode(std::shared_ptr< const Well > well, const SimulatorTimerInterface& simulatorTimer, - EclipseGridConstPtr eclipseGrid, + std::shared_ptr< const EclipseGrid > eclipseGrid, const std::vector& pressure, const std::vector& swat, const std::vector& sgas); diff --git a/opm/core/io/eclipse/EclipseWriter.cpp b/opm/core/io/eclipse/EclipseWriter.cpp index 291778fd..36028659 100644 --- a/opm/core/io/eclipse/EclipseWriter.cpp +++ b/opm/core/io/eclipse/EclipseWriter.cpp @@ -40,9 +40,13 @@ #include #include #include +#include +#include +#include +#include +#include #include #include -#include #include // to_upper_copy #include diff --git a/opm/core/io/eclipse/EclipseWriter.hpp b/opm/core/io/eclipse/EclipseWriter.hpp index ee07246a..45429914 100644 --- a/opm/core/io/eclipse/EclipseWriter.hpp +++ b/opm/core/io/eclipse/EclipseWriter.hpp @@ -28,6 +28,10 @@ #include #include +#include +#include + +#include #include #include diff --git a/opm/core/props/IncompPropertiesSinglePhase.cpp b/opm/core/props/IncompPropertiesSinglePhase.cpp index a0a284bf..4790f7f2 100644 --- a/opm/core/props/IncompPropertiesSinglePhase.cpp +++ b/opm/core/props/IncompPropertiesSinglePhase.cpp @@ -24,7 +24,8 @@ #include #include #include -// #include + +#include namespace Opm { diff --git a/opm/core/props/pvt/BlackoilPvtProperties.cpp b/opm/core/props/pvt/BlackoilPvtProperties.cpp index 99522100..232b95b6 100644 --- a/opm/core/props/pvt/BlackoilPvtProperties.cpp +++ b/opm/core/props/pvt/BlackoilPvtProperties.cpp @@ -33,6 +33,7 @@ #include #include +#include namespace Opm { diff --git a/opm/core/props/pvt/PvtConstCompr.hpp b/opm/core/props/pvt/PvtConstCompr.hpp index 70fc9b18..16a5bceb 100644 --- a/opm/core/props/pvt/PvtConstCompr.hpp +++ b/opm/core/props/pvt/PvtConstCompr.hpp @@ -22,6 +22,7 @@ #include #include +#include #include #include diff --git a/opm/core/props/pvt/PvtDead.cpp b/opm/core/props/pvt/PvtDead.cpp index d7526cae..ca2750df 100644 --- a/opm/core/props/pvt/PvtDead.cpp +++ b/opm/core/props/pvt/PvtDead.cpp @@ -20,6 +20,8 @@ #include "config.h" #include +#include +#include #include // Extra includes for debug dumping of tables. diff --git a/opm/core/props/pvt/PvtDeadSpline.cpp b/opm/core/props/pvt/PvtDeadSpline.cpp index 35f9d382..b7452c52 100644 --- a/opm/core/props/pvt/PvtDeadSpline.cpp +++ b/opm/core/props/pvt/PvtDeadSpline.cpp @@ -20,6 +20,8 @@ #include "config.h" #include #include +#include +#include #include diff --git a/opm/core/props/pvt/PvtInterface.cpp b/opm/core/props/pvt/PvtInterface.cpp index da65c24e..aa31a576 100644 --- a/opm/core/props/pvt/PvtInterface.cpp +++ b/opm/core/props/pvt/PvtInterface.cpp @@ -19,6 +19,7 @@ #include "config.h" #include +#include #include diff --git a/opm/core/props/pvt/PvtLiveGas.cpp b/opm/core/props/pvt/PvtLiveGas.cpp index 228d114c..934a8ede 100644 --- a/opm/core/props/pvt/PvtLiveGas.cpp +++ b/opm/core/props/pvt/PvtLiveGas.cpp @@ -33,6 +33,8 @@ #include #include #include +#include +#include #include #include diff --git a/opm/core/props/pvt/PvtLiveGas.hpp b/opm/core/props/pvt/PvtLiveGas.hpp index a54a793f..93833de9 100644 --- a/opm/core/props/pvt/PvtLiveGas.hpp +++ b/opm/core/props/pvt/PvtLiveGas.hpp @@ -28,6 +28,8 @@ namespace Opm { + class PvtgTable; + /// Class for miscible wet gas (with vaporized oil in vapour phase). /// The PVT properties can either be given as a function of pressure (p), temperature (T) and surface volume (z) /// or pressure (p), temperature (T) and gas resolution factor (r). diff --git a/opm/core/props/pvt/PvtLiveOil.cpp b/opm/core/props/pvt/PvtLiveOil.cpp index 42340664..cfa25d43 100644 --- a/opm/core/props/pvt/PvtLiveOil.cpp +++ b/opm/core/props/pvt/PvtLiveOil.cpp @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include diff --git a/opm/core/props/pvt/PvtLiveOil.hpp b/opm/core/props/pvt/PvtLiveOil.hpp index e94dd7c1..24ede096 100644 --- a/opm/core/props/pvt/PvtLiveOil.hpp +++ b/opm/core/props/pvt/PvtLiveOil.hpp @@ -29,6 +29,9 @@ namespace Opm { + + class PvtoTable; + /// Class for miscible live oil (with dissolved gas in liquid phase). /// The PVT properties can either be given as a function of pressure (p), temperature (T) and surface volume (z) /// or pressure (p), temperature (T) and gas resolution factor (r). diff --git a/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp b/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp index 906b7b77..3ebe16fb 100644 --- a/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp +++ b/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp @@ -24,6 +24,7 @@ #include #include #include +#include namespace Opm diff --git a/opm/core/props/pvt/ThermalGasPvtWrapper.hpp b/opm/core/props/pvt/ThermalGasPvtWrapper.hpp index d84d8750..7129cd14 100644 --- a/opm/core/props/pvt/ThermalGasPvtWrapper.hpp +++ b/opm/core/props/pvt/ThermalGasPvtWrapper.hpp @@ -23,6 +23,7 @@ #include #include +#include #include diff --git a/opm/core/props/pvt/ThermalOilPvtWrapper.hpp b/opm/core/props/pvt/ThermalOilPvtWrapper.hpp index efb37622..3dee98d8 100644 --- a/opm/core/props/pvt/ThermalOilPvtWrapper.hpp +++ b/opm/core/props/pvt/ThermalOilPvtWrapper.hpp @@ -24,6 +24,7 @@ #include #include +#include #include diff --git a/opm/core/props/pvt/ThermalWaterPvtWrapper.hpp b/opm/core/props/pvt/ThermalWaterPvtWrapper.hpp index ffc9108b..b19a4fd0 100644 --- a/opm/core/props/pvt/ThermalWaterPvtWrapper.hpp +++ b/opm/core/props/pvt/ThermalWaterPvtWrapper.hpp @@ -24,6 +24,7 @@ #include #include +#include #include diff --git a/opm/core/props/rock/RockCompressibility.cpp b/opm/core/props/rock/RockCompressibility.cpp index 8ee859d6..2f38d500 100644 --- a/opm/core/props/rock/RockCompressibility.cpp +++ b/opm/core/props/rock/RockCompressibility.cpp @@ -24,6 +24,8 @@ #include #include +#include +#include #include diff --git a/opm/core/props/satfunc/RelpermDiagnostics.cpp b/opm/core/props/satfunc/RelpermDiagnostics.cpp index 073bd7bc..521ce7f7 100644 --- a/opm/core/props/satfunc/RelpermDiagnostics.cpp +++ b/opm/core/props/satfunc/RelpermDiagnostics.cpp @@ -19,6 +19,8 @@ #include #include +#include +#include namespace Opm{ diff --git a/opm/core/props/satfunc/RelpermDiagnostics.hpp b/opm/core/props/satfunc/RelpermDiagnostics.hpp index e0975a5b..25b0b89e 100644 --- a/opm/core/props/satfunc/RelpermDiagnostics.hpp +++ b/opm/core/props/satfunc/RelpermDiagnostics.hpp @@ -40,6 +40,9 @@ namespace Opm { + class Sof2Table; + class SgwfnTable; + ///This class is intend to be a relpmer diganostics, to detect ///wrong input of relperm table and endpoints. class RelpermDiagnostics diff --git a/opm/core/simulator/initStateEquil.hpp b/opm/core/simulator/initStateEquil.hpp index e439d080..0a0c2f6e 100644 --- a/opm/core/simulator/initStateEquil.hpp +++ b/opm/core/simulator/initStateEquil.hpp @@ -31,6 +31,9 @@ #include #include #include +#include +#include +#include #include #include diff --git a/opm/core/wells/WellsManager.hpp b/opm/core/wells/WellsManager.hpp index 02aacc1b..f098f797 100644 --- a/opm/core/wells/WellsManager.hpp +++ b/opm/core/wells/WellsManager.hpp @@ -35,6 +35,9 @@ struct UnstructuredGrid; namespace Opm { + + class Schedule; + struct WellData { WellType type; @@ -175,7 +178,7 @@ namespace Opm const NTG& ntg, std::vector& wells_on_proc); - void addChildGroups(GroupTreeNodeConstPtr parentNode, ScheduleConstPtr schedule, size_t timeStep, const PhaseUsage& phaseUsage); + void addChildGroups(GroupTreeNodeConstPtr parentNode, std::shared_ptr< const Schedule > schedule, size_t timeStep, const PhaseUsage& phaseUsage); void setupGuideRates(std::vector& wells, const size_t timeStep, std::vector& well_data, std::map& well_names_to_index); diff --git a/opm/core/wells/WellsManager_impl.hpp b/opm/core/wells/WellsManager_impl.hpp index a9e9b907..a411c593 100644 --- a/opm/core/wells/WellsManager_impl.hpp +++ b/opm/core/wells/WellsManager_impl.hpp @@ -3,6 +3,8 @@ #include #include +#include +#include #include #include @@ -141,7 +143,7 @@ void WellsManager::createWellsFromSpecs(std::vector& wells, size_t } { // COMPDAT handling - CompletionSetConstPtr completionSet = well->getCompletions(timeStep); + auto completionSet = well->getCompletions(timeStep); // shut completions and open ones stored in this process will have 1 others 0. std::vector completion_on_proc(completionSet->size(), 1); std::size_t shut_completions_number = 0; @@ -372,7 +374,7 @@ WellsManager::init(const Opm::EclipseStateConstPtr eclipseState, // For easy lookup: std::map well_names_to_index; - ScheduleConstPtr schedule = eclipseState->getSchedule(); + auto schedule = eclipseState->getSchedule(); std::vector wells = schedule->getWells(timeStep); std::vector wells_on_proc; diff --git a/tests/test_EclipseWriter.cpp b/tests/test_EclipseWriter.cpp index a02f3771..437c64ec 100644 --- a/tests/test_EclipseWriter.cpp +++ b/tests/test_EclipseWriter.cpp @@ -37,6 +37,8 @@ #include #include #include +#include +#include // ERT stuff #include diff --git a/tests/test_norne_pvt.cpp b/tests/test_norne_pvt.cpp index 3bc92bdd..39a9c868 100644 --- a/tests/test_norne_pvt.cpp +++ b/tests/test_norne_pvt.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include diff --git a/tests/test_pinchprocessor.cpp b/tests/test_pinchprocessor.cpp index 64deaabf..96163299 100644 --- a/tests/test_pinchprocessor.cpp +++ b/tests/test_pinchprocessor.cpp @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/test_timer.cpp b/tests/test_timer.cpp index 065cf8f6..de78e8fc 100644 --- a/tests/test_timer.cpp +++ b/tests/test_timer.cpp @@ -27,6 +27,7 @@ #define BOOST_TEST_MODULE OPM-TimerTest #include +#include #include #include diff --git a/tests/test_wellcollection.cpp b/tests/test_wellcollection.cpp index d94d19b1..76697655 100644 --- a/tests/test_wellcollection.cpp +++ b/tests/test_wellcollection.cpp @@ -33,8 +33,9 @@ #include #include #include +#include #include -#include +#include using namespace Opm; diff --git a/tests/test_wellsgroup.cpp b/tests/test_wellsgroup.cpp index ece1a535..deb7c632 100644 --- a/tests/test_wellsgroup.cpp +++ b/tests/test_wellsgroup.cpp @@ -39,8 +39,9 @@ #include #include #include -#include +#include +#include #include #include diff --git a/tests/test_writenumwells.cpp b/tests/test_writenumwells.cpp index fee3ddbe..0b20b9b5 100644 --- a/tests/test_writenumwells.cpp +++ b/tests/test_writenumwells.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include