diff --git a/ebos/alucartesianindexmapper.hh b/ebos/alucartesianindexmapper.hh index eb9ac7bd5..754a60f7d 100644 --- a/ebos/alucartesianindexmapper.hh +++ b/ebos/alucartesianindexmapper.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::AluCartesianIndexMapper + * \copydoc Opm::AluCartesianIndexMapper */ #ifndef EWOMS_ALU_CARTESIAN_INDEX_MAPPER_HH #define EWOMS_ALU_CARTESIAN_INDEX_MAPPER_HH @@ -37,7 +37,7 @@ #include #include -namespace Ewoms { +namespace Opm { /*! * \brief Interface class to access the logical Cartesian grid as used in industry @@ -248,6 +248,6 @@ protected: const int cartesianSize_ ; }; -} // end namespace Ewoms +} // end namespace Opm #endif diff --git a/ebos/collecttoiorank.hh b/ebos/collecttoiorank.hh index 5d9affbed..b5e9856a1 100644 --- a/ebos/collecttoiorank.hh +++ b/ebos/collecttoiorank.hh @@ -41,7 +41,7 @@ #include -namespace Ewoms { +namespace Opm { template class CollectDataToIORank @@ -588,6 +588,6 @@ protected: Opm::data::Wells globalWellData_; }; -} // end namespace Ewoms +} // end namespace Opm #endif diff --git a/ebos/ebos.hh b/ebos/ebos.hh index 8dfa07574..b343b9219 100644 --- a/ebos/ebos.hh +++ b/ebos/ebos.hh @@ -36,7 +36,7 @@ #include -namespace Ewoms { +namespace Opm { template class EbosProblem; } @@ -46,7 +46,7 @@ BEGIN_PROPERTIES NEW_TYPE_TAG(EbosTypeTag, INHERITS_FROM(BlackOilModel, EclBaseProblem, FlowModelParameters)); // Set the problem class -SET_TYPE_PROP(EbosTypeTag, Problem, Ewoms::EbosProblem); +SET_TYPE_PROP(EbosTypeTag, Problem, Opm::EbosProblem); // Enable experimental features for ebos: ebos is the research simulator of the OPM // project. If you're looking for a more stable "production quality" simulator, consider @@ -111,7 +111,7 @@ SET_BOOL_PROP(EbosTypeTag, ContinueOnConvergenceError, true); END_PROPERTIES -namespace Ewoms { +namespace Opm { template class EbosProblem : public EclProblem { diff --git a/ebos/ebos_altidx.cc b/ebos/ebos_altidx.cc index 7f97454da..509cf7e16 100644 --- a/ebos/ebos_altidx.cc +++ b/ebos/ebos_altidx.cc @@ -33,7 +33,7 @@ #include "ebos.hh" -namespace Ewoms { +namespace Opm { class EclAlternativeBlackOilIndexTraits { typedef Opm::BlackOilDefaultIndexTraits DIT; @@ -59,7 +59,7 @@ SET_PROP(EbosAltIdxTypeTag, FluidSystem) typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; public: - typedef Opm::BlackOilFluidSystem type; + typedef Opm::BlackOilFluidSystem type; }; END_PROPERTIES @@ -67,5 +67,5 @@ END_PROPERTIES int main(int argc, char **argv) { typedef TTAG(EbosAltIdxTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } diff --git a/ebos/ebos_blackoil.cc b/ebos/ebos_blackoil.cc index 06653255c..840643b6a 100644 --- a/ebos/ebos_blackoil.cc +++ b/ebos/ebos_blackoil.cc @@ -29,7 +29,7 @@ #include "ebos.hh" -namespace Ewoms { +namespace Opm { bool ebosBlackOilDeckFileNameIsSet(int argc, char** argv) { @@ -38,11 +38,11 @@ bool ebosBlackOilDeckFileNameIsSet(int argc, char** argv) // use the ewoms parameter machinery and the blackoil vanguard to handle the grunt of // the work EWOMS_RESET_PARAMS_(ProblemTypeTag); - Ewoms::setupParameters_(argc, - const_cast(argv), - /*doRegistration=*/true, - /*allowUnused=*/true, - /*handleHelp=*/false); + Opm::setupParameters_(argc, + const_cast(argv), + /*doRegistration=*/true, + /*allowUnused=*/true, + /*handleHelp=*/false); bool result = EWOMS_PARAM_IS_SET(ProblemTypeTag, std::string, EclDeckFileName); EWOMS_RESET_PARAMS_(ProblemTypeTag); @@ -57,11 +57,11 @@ std::string ebosBlackOilGetDeckFileName(int argc, char** argv) // use the ewoms parameter machinery and the blackoil vanguard to handle the grunt of // the work EWOMS_RESET_PARAMS_(ProblemTypeTag); - Ewoms::setupParameters_(argc, - const_cast(argv), - /*doRegistration=*/true, - /*allowUnused=*/true, - /*handleHelp=*/false); + Opm::setupParameters_(argc, + const_cast(argv), + /*doRegistration=*/true, + /*allowUnused=*/true, + /*handleHelp=*/false); std::string rawDeckFileName = EWOMS_GET_PARAM(ProblemTypeTag, std::string, EclDeckFileName); std::string result = Vanguard::canonicalDeckPath(rawDeckFileName).string(); EWOMS_RESET_PARAMS_(ProblemTypeTag); @@ -77,11 +77,11 @@ std::unique_ptr ebosBlackOilCreateParseContext(int argc, char // use the ewoms parameter machinery and the blackoil vanguard to handle the grunt of // the work EWOMS_RESET_PARAMS_(ProblemTypeTag); - Ewoms::setupParameters_(argc, - const_cast(argv), - /*doRegistration=*/true, - /*allowUnused=*/true, - /*handleHelp=*/false); + Opm::setupParameters_(argc, + const_cast(argv), + /*doRegistration=*/true, + /*allowUnused=*/true, + /*handleHelp=*/false); std::unique_ptr result = Vanguard::createParseContext(); EWOMS_RESET_PARAMS_(ProblemTypeTag); @@ -105,7 +105,7 @@ void ebosBlackOilSetDeck(Opm::Deck* deck, int ebosBlackOilMain(int argc, char **argv) { typedef TTAG(EbosTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_blackoil.hh b/ebos/ebos_blackoil.hh index b9b37a225..dd460a14e 100644 --- a/ebos/ebos_blackoil.hh +++ b/ebos/ebos_blackoil.hh @@ -35,7 +35,7 @@ #include #include -namespace Ewoms { +namespace Opm { bool ebosBlackOilDeckFileNameIsSet(int argc, char** argv); std::string ebosBlackOilGetDeckFileName(int argc, char** argv); std::unique_ptr ebosBlackOilCreateParseContext(int argc, char** argv); diff --git a/ebos/ebos_foam.cc b/ebos/ebos_foam.cc index 1e1a90322..41e344d4d 100644 --- a/ebos/ebos_foam.cc +++ b/ebos/ebos_foam.cc @@ -38,12 +38,12 @@ SET_BOOL_PROP(EbosFoamTypeTag, EnableFoam, true); END_PROPERTIES -namespace Ewoms { +namespace Opm { void ebosFoamSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime) + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime) { typedef TTAG(EbosFoamTypeTag) ProblemTypeTag; typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard; @@ -57,7 +57,7 @@ void ebosFoamSetDeck(Opm::Deck* deck, int ebosFoamMain(int argc, char **argv) { typedef TTAG(EbosFoamTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_foam.hh b/ebos/ebos_foam.hh index 78eda05be..7cc7dcf3d 100644 --- a/ebos/ebos_foam.hh +++ b/ebos/ebos_foam.hh @@ -32,11 +32,11 @@ #include #include -namespace Ewoms { +namespace Opm { void ebosFoamSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime); + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime); int ebosFoamMain(int argc, char** argv); } diff --git a/ebos/ebos_foam_main.cc b/ebos/ebos_foam_main.cc index c9a53853a..a554bf537 100644 --- a/ebos/ebos_foam_main.cc +++ b/ebos/ebos_foam_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosFoamMain(argc, argv); + return Opm::ebosFoamMain(argc, argv); } diff --git a/ebos/ebos_gasoil.cc b/ebos/ebos_gasoil.cc index d1b88149d..c05c9bcb7 100644 --- a/ebos/ebos_gasoil.cc +++ b/ebos/ebos_gasoil.cc @@ -43,17 +43,17 @@ private: typedef typename GET_PROP_TYPE(TTAG(EbosTypeTag), FluidSystem) FluidSystem; public: - typedef Ewoms::BlackOilTwoPhaseIndices type; + typedef Opm::BlackOilTwoPhaseIndices type; }; END_PROPERTIES -namespace Ewoms { +namespace Opm { void ebosGasOilSetDeck(Opm::Deck* deck, Opm::ParseContext* parseContext, @@ -72,7 +72,7 @@ void ebosGasOilSetDeck(Opm::Deck* deck, int ebosGasOilMain(int argc, char **argv) { typedef TTAG(EbosGasOilTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_gasoil.hh b/ebos/ebos_gasoil.hh index 4892b4256..0c8b11384 100644 --- a/ebos/ebos_gasoil.hh +++ b/ebos/ebos_gasoil.hh @@ -32,11 +32,11 @@ #include #include -namespace Ewoms { +namespace Opm { void ebosGasOilSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime); + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime); int ebosGasOilMain(int argc, char** argv); } diff --git a/ebos/ebos_gasoil_main.cc b/ebos/ebos_gasoil_main.cc index d09059253..858b9cd1f 100644 --- a/ebos/ebos_gasoil_main.cc +++ b/ebos/ebos_gasoil_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosGasOilMain(argc, argv); + return Opm::ebosGasOilMain(argc, argv); } diff --git a/ebos/ebos_main.cc b/ebos/ebos_main.cc index 50d73331d..8bcc89b14 100644 --- a/ebos/ebos_main.cc +++ b/ebos/ebos_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosBlackOilMain(argc, argv); + return Opm::ebosBlackOilMain(argc, argv); } diff --git a/ebos/ebos_oilwater.cc b/ebos/ebos_oilwater.cc index ab9e26c3b..f5f877486 100644 --- a/ebos/ebos_oilwater.cc +++ b/ebos/ebos_oilwater.cc @@ -43,17 +43,17 @@ private: typedef typename GET_PROP_TYPE(TTAG(EbosTypeTag), FluidSystem) FluidSystem; public: - typedef Ewoms::BlackOilTwoPhaseIndices type; + typedef Opm::BlackOilTwoPhaseIndices type; }; END_PROPERTIES -namespace Ewoms { +namespace Opm { void ebosOilWaterSetDeck(Opm::Deck* deck, Opm::ParseContext* parseContext, @@ -72,7 +72,7 @@ void ebosOilWaterSetDeck(Opm::Deck* deck, int ebosOilWaterMain(int argc, char **argv) { typedef TTAG(EbosOilWaterTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_oilwater.hh b/ebos/ebos_oilwater.hh index d1f95cee6..668b90ce8 100644 --- a/ebos/ebos_oilwater.hh +++ b/ebos/ebos_oilwater.hh @@ -32,7 +32,7 @@ #include #include -namespace Ewoms { +namespace Opm { void ebosOilWaterSetDeck(Opm::Deck* deck, Opm::ParseContext* parseContext, Opm::ErrorGuard* errorGuard, diff --git a/ebos/ebos_oilwater_main.cc b/ebos/ebos_oilwater_main.cc index 12288c5b9..072a7e146 100644 --- a/ebos/ebos_oilwater_main.cc +++ b/ebos/ebos_oilwater_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosOilWaterMain(argc, argv); + return Opm::ebosOilWaterMain(argc, argv); } diff --git a/ebos/ebos_plain.cc b/ebos/ebos_plain.cc index ea5b27a87..d195001d8 100644 --- a/ebos/ebos_plain.cc +++ b/ebos/ebos_plain.cc @@ -40,5 +40,5 @@ END_PROPERTIES int main(int argc, char **argv) { typedef TTAG(EbosPlainTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } diff --git a/ebos/ebos_polymer.cc b/ebos/ebos_polymer.cc index 09dbfab9f..75be77657 100644 --- a/ebos/ebos_polymer.cc +++ b/ebos/ebos_polymer.cc @@ -38,12 +38,12 @@ SET_BOOL_PROP(EbosPolymerTypeTag, EnablePolymer, true); END_PROPERTIES -namespace Ewoms { +namespace Opm { void ebosPolymerSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime) + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime) { typedef TTAG(EbosPolymerTypeTag) ProblemTypeTag; typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard; @@ -57,7 +57,7 @@ void ebosPolymerSetDeck(Opm::Deck* deck, int ebosPolymerMain(int argc, char **argv) { typedef TTAG(EbosPolymerTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_polymer.hh b/ebos/ebos_polymer.hh index d9f5cc6d2..486c346a0 100644 --- a/ebos/ebos_polymer.hh +++ b/ebos/ebos_polymer.hh @@ -32,11 +32,11 @@ #include #include -namespace Ewoms { +namespace Opm { void ebosPolymerSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime); + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime); int ebosPolymerMain(int argc, char** argv); } diff --git a/ebos/ebos_polymer_main.cc b/ebos/ebos_polymer_main.cc index f339d98eb..d1fa27211 100644 --- a/ebos/ebos_polymer_main.cc +++ b/ebos/ebos_polymer_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosPolymerMain(argc, argv); + return Opm::ebosPolymerMain(argc, argv); } diff --git a/ebos/ebos_solvent.cc b/ebos/ebos_solvent.cc index 6d6ac7853..cfc7c4d12 100644 --- a/ebos/ebos_solvent.cc +++ b/ebos/ebos_solvent.cc @@ -38,12 +38,12 @@ SET_BOOL_PROP(EbosSolventTypeTag, EnableSolvent, true); END_PROPERTIES -namespace Ewoms { +namespace Opm { void ebosSolventSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime) + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime) { typedef TTAG(EbosSolventTypeTag) ProblemTypeTag; typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard; @@ -57,7 +57,7 @@ void ebosSolventSetDeck(Opm::Deck* deck, int ebosSolventMain(int argc, char **argv) { typedef TTAG(EbosSolventTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_solvent.hh b/ebos/ebos_solvent.hh index e86b49205..01a94385e 100644 --- a/ebos/ebos_solvent.hh +++ b/ebos/ebos_solvent.hh @@ -32,11 +32,11 @@ #include #include -namespace Ewoms { +namespace Opm { void ebosSolventSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime); + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime); int ebosSolventMain(int argc, char** argv); } diff --git a/ebos/ebos_solvent_main.cc b/ebos/ebos_solvent_main.cc index 59912f928..5a08908d4 100644 --- a/ebos/ebos_solvent_main.cc +++ b/ebos/ebos_solvent_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosSolventMain(argc, argv); + return Opm::ebosSolventMain(argc, argv); } diff --git a/ebos/ebos_thermal.cc b/ebos/ebos_thermal.cc index 9a2e3d4d7..add63d7c4 100644 --- a/ebos/ebos_thermal.cc +++ b/ebos/ebos_thermal.cc @@ -38,12 +38,12 @@ SET_BOOL_PROP(EbosThermalTypeTag, EnableEnergy, true); END_PROPERTIES -namespace Ewoms { +namespace Opm { void ebosThermalSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime) + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime) { typedef TTAG(EbosThermalTypeTag) ProblemTypeTag; typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard; @@ -57,7 +57,7 @@ void ebosThermalSetDeck(Opm::Deck* deck, int ebosThermalMain(int argc, char **argv) { typedef TTAG(EbosThermalTypeTag) ProblemTypeTag; - return Ewoms::start(argc, argv); + return Opm::start(argc, argv); } } diff --git a/ebos/ebos_thermal.hh b/ebos/ebos_thermal.hh index ac1232dac..01910b25e 100644 --- a/ebos/ebos_thermal.hh +++ b/ebos/ebos_thermal.hh @@ -32,11 +32,11 @@ #include #include -namespace Ewoms { +namespace Opm { void ebosThermalSetDeck(Opm::Deck* deck, - Opm::ParseContext* parseContext, - Opm::ErrorGuard* errorGuard, - double externalSetupTime); + Opm::ParseContext* parseContext, + Opm::ErrorGuard* errorGuard, + double externalSetupTime); int ebosThermalMain(int argc, char** argv); } diff --git a/ebos/ebos_thermal_main.cc b/ebos/ebos_thermal_main.cc index 1d88ecefd..7acf3bfe8 100644 --- a/ebos/ebos_thermal_main.cc +++ b/ebos/ebos_thermal_main.cc @@ -33,5 +33,5 @@ int main(int argc, char** argv) { - return Ewoms::ebosThermalMain(argc, argv); + return Opm::ebosThermalMain(argc, argv); } diff --git a/ebos/eclalugridvanguard.hh b/ebos/eclalugridvanguard.hh index 4c9ef97b8..a22a41377 100644 --- a/ebos/eclalugridvanguard.hh +++ b/ebos/eclalugridvanguard.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::EclAluGridVanguard + * \copydoc Opm::EclAluGridVanguard */ #ifndef EWOMS_ECL_ALU_GRID_VANGUARD_HH #define EWOMS_ECL_ALU_GRID_VANGUARD_HH @@ -34,24 +34,24 @@ #include #include -namespace Ewoms { +namespace Opm { template class EclAluGridVanguard; -} // namespace Ewoms +} // namespace Opm BEGIN_PROPERTIES NEW_TYPE_TAG(EclAluGridVanguard, INHERITS_FROM(EclBaseVanguard)); // declare the properties -SET_TYPE_PROP(EclAluGridVanguard, Vanguard, Ewoms::EclAluGridVanguard); +SET_TYPE_PROP(EclAluGridVanguard, Vanguard, Opm::EclAluGridVanguard); SET_TYPE_PROP(EclAluGridVanguard, Grid, Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>); SET_TYPE_PROP(EclAluGridVanguard, EquilGrid, Dune::CpGrid); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -75,7 +75,7 @@ public: typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView; private: - typedef Ewoms::AluCartesianIndexMapper CartesianIndexMapper; + typedef Opm::AluCartesianIndexMapper CartesianIndexMapper; typedef Dune::CartesianIndexMapper EquilCartesianIndexMapper; static const int dimension = Grid::dimension; @@ -215,6 +215,6 @@ protected: EquilCartesianIndexMapper* equilCartesianIndexMapper_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclbaseaquifermodel.hh b/ebos/eclbaseaquifermodel.hh index 649b9e020..31563331b 100644 --- a/ebos/eclbaseaquifermodel.hh +++ b/ebos/eclbaseaquifermodel.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::EclBaseAquiferModel + * \copydoc Opm::EclBaseAquiferModel */ #ifndef EWOMS_ECL_BASE_AQUIFER_MODEL_HH #define EWOMS_ECL_BASE_AQUIFER_MODEL_HH @@ -36,7 +36,7 @@ NEW_PROP_TAG(RateVector); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBaseAquiferModel @@ -137,6 +137,6 @@ protected: Simulator& simulator_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclbasevanguard.hh b/ebos/eclbasevanguard.hh index 10a8a1b0b..e1dbb49c7 100644 --- a/ebos/eclbasevanguard.hh +++ b/ebos/eclbasevanguard.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::EclBaseVanguard + * \copydoc Opm::EclBaseVanguard */ #ifndef EWOMS_ECL_BASE_VANGUARD_HH #define EWOMS_ECL_BASE_VANGUARD_HH @@ -55,7 +55,7 @@ #include #include -namespace Ewoms { +namespace Opm { template class EclBaseVanguard; } @@ -86,7 +86,7 @@ SET_INT_PROP(EclBaseVanguard, EdgeWeightsMethod, 1); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -624,6 +624,6 @@ Opm::Schedule* EclBaseVanguard::externalEclSchedule_ = nullptr; template Opm::SummaryConfig* EclBaseVanguard::externalEclSummaryConfig_ = nullptr; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclcpgridvanguard.hh b/ebos/eclcpgridvanguard.hh index 5e438049b..8c73319c7 100644 --- a/ebos/eclcpgridvanguard.hh +++ b/ebos/eclcpgridvanguard.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::EclCpGridVanguard + * \copydoc Opm::EclCpGridVanguard */ #ifndef EWOMS_ECL_CP_GRID_VANGUARD_HH #define EWOMS_ECL_CP_GRID_VANGUARD_HH @@ -38,7 +38,7 @@ #include -namespace Ewoms { +namespace Opm { template class EclCpGridVanguard; } @@ -48,13 +48,13 @@ BEGIN_PROPERTIES NEW_TYPE_TAG(EclCpGridVanguard, INHERITS_FROM(EclBaseVanguard)); // declare the properties -SET_TYPE_PROP(EclCpGridVanguard, Vanguard, Ewoms::EclCpGridVanguard); +SET_TYPE_PROP(EclCpGridVanguard, Vanguard, Opm::EclCpGridVanguard); SET_TYPE_PROP(EclCpGridVanguard, Grid, Dune::CpGrid); SET_TYPE_PROP(EclCpGridVanguard, EquilGrid, typename GET_PROP_TYPE(TypeTag, Grid)); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -289,6 +289,6 @@ protected: std::unordered_set defunctWellNames_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/ecldummygradientcalculator.hh b/ebos/ecldummygradientcalculator.hh index 062479211..d5e2525f7 100644 --- a/ebos/ecldummygradientcalculator.hh +++ b/ebos/ecldummygradientcalculator.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::EclDummyGradientCalculator + * \copydoc Opm::EclDummyGradientCalculator */ #ifndef EWOMS_ECL_DUMMY_GRADIENT_CALCULATOR_HH #define EWOMS_ECL_DUMMY_GRADIENT_CALCULATOR_HH @@ -34,7 +34,7 @@ #include -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator * @@ -99,6 +99,6 @@ public: throw std::logic_error("Generic boundary gradients are not supported by the ECL black-oil simulator"); } }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclequilinitializer.hh b/ebos/eclequilinitializer.hh index f1a70de13..afe69cc03 100644 --- a/ebos/eclequilinitializer.hh +++ b/ebos/eclequilinitializer.hh @@ -23,7 +23,7 @@ /** * \file * - * \copydoc Ewoms::EclEquilInitializer + * \copydoc Opm::EclEquilInitializer */ #ifndef EWOMS_ECL_EQUIL_INITIALIZER_HH #define EWOMS_ECL_EQUIL_INITIALIZER_HH @@ -50,7 +50,7 @@ NEW_PROP_TAG(EnableEnergy); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -182,6 +182,6 @@ protected: std::vector initialFluidStates_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclfluxmodule.hh b/ebos/eclfluxmodule.hh index 399efa8e4..73893e0e1 100644 --- a/ebos/eclfluxmodule.hh +++ b/ebos/eclfluxmodule.hh @@ -47,7 +47,7 @@ NEW_PROP_TAG(MaterialLaw); END_PROPERTIES -namespace Ewoms { +namespace Opm { template class EclTransIntensiveQuantities; @@ -500,6 +500,6 @@ private: unsigned short dnIdx_[numPhases]; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclnewtonmethod.hh b/ebos/eclnewtonmethod.hh index ba49abdb2..f3f03ec52 100644 --- a/ebos/eclnewtonmethod.hh +++ b/ebos/eclnewtonmethod.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::EclNewtonMethod + * \copydoc Opm::EclNewtonMethod */ #ifndef EWOMS_ECL_NEWTON_METHOD_HH #define EWOMS_ECL_NEWTON_METHOD_HH @@ -43,7 +43,7 @@ NEW_PROP_TAG(EclNewtonRelaxedTolerance); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \brief A newton solver which is ebos specific. @@ -238,6 +238,6 @@ private: int numStrictIterations_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/ecloutputblackoilmodule.hh b/ebos/ecloutputblackoilmodule.hh index 32e679558..3afbcca91 100644 --- a/ebos/ecloutputblackoilmodule.hh +++ b/ebos/ecloutputblackoilmodule.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::EclOutputBlackOilModule + * \copydoc Opm::EclOutputBlackOilModule */ #ifndef EWOMS_ECL_OUTPUT_BLACK_OIL_MODULE_HH #define EWOMS_ECL_OUTPUT_BLACK_OIL_MODULE_HH @@ -57,7 +57,7 @@ SET_BOOL_PROP(EclOutputBlackOil, ForceDisableFluidInPlaceOutput, false); END_PROPERTIES -namespace Ewoms { +namespace Opm { // forward declaration template @@ -149,7 +149,7 @@ public: */ void allocBuffers(unsigned bufferSize, unsigned reportStepNum, const bool substep, const bool log) { - if (!std::is_same >::value) + if (!std::is_same >::value) return; // Summary output is for all steps @@ -376,7 +376,7 @@ public: */ void processElement(const ElementContext& elemCtx) { - if (!std::is_same >::value) + if (!std::is_same >::value) return; const auto& problem = elemCtx.simulator().problem(); @@ -787,7 +787,7 @@ public: */ void assignToSolution(Opm::data::Solution& sol) { - if (!std::is_same>::value) + if (!std::is_same>::value) return; if (oilPressure_.size() > 0) { @@ -1508,6 +1508,6 @@ private: std::map gasConnectionSaturations_; std::vector tracerConcentrations_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclpeacemanwell.hh b/ebos/eclpeacemanwell.hh index c8153fba9..9b0269142 100644 --- a/ebos/eclpeacemanwell.hh +++ b/ebos/eclpeacemanwell.hh @@ -23,7 +23,7 @@ /** * \file * - * \copydoc Ewoms::EclPeacemanWell + * \copydoc Opm::EclPeacemanWell */ #ifndef EWOMS_ECL_PEACEMAN_WELL_HH #define EWOMS_ECL_PEACEMAN_WELL_HH @@ -45,7 +45,7 @@ #include -namespace Ewoms { +namespace Opm { template class EcfvDiscretization; @@ -289,13 +289,13 @@ public: } /*! - * \copydoc Ewoms::BaseAuxiliaryModule::numDofs() + * \copydoc Opm::BaseAuxiliaryModule::numDofs() */ virtual unsigned numDofs() const { return 1; } /*! - * \copydoc Ewoms::BaseAuxiliaryModule::addNeighbors() + * \copydoc Opm::BaseAuxiliaryModule::addNeighbors() */ virtual void addNeighbors(std::vector& neighbors) const { @@ -315,7 +315,7 @@ public: } /*! - * \copydoc Ewoms::BaseAuxiliaryModule::addNeighbors() + * \copydoc Opm::BaseAuxiliaryModule::addNeighbors() */ virtual void applyInitial() { @@ -337,7 +337,7 @@ public: } /*! - * \copydoc Ewoms::BaseAuxiliaryModule::linearize() + * \copydoc Opm::BaseAuxiliaryModule::linearize() */ virtual void linearize(SparseMatrixAdapter& matrix, GlobalEqVector& residual) { @@ -1641,7 +1641,7 @@ protected: std::string name_; - std::vector > dofVarsStore_; + std::vector > dofVarsStore_; std::map dofVariables_; // the number of times beginIteration*() was called for the current time step @@ -1717,6 +1717,6 @@ protected: unsigned injectedPhaseIdx_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclpolyhedralgridvanguard.hh b/ebos/eclpolyhedralgridvanguard.hh index de763155c..df7383197 100644 --- a/ebos/eclpolyhedralgridvanguard.hh +++ b/ebos/eclpolyhedralgridvanguard.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::EclPolyhedralGridVanguard + * \copydoc Opm::EclPolyhedralGridVanguard */ #ifndef EWOMS_ECL_POLYHEDRAL_GRID_VANGUARD_HH #define EWOMS_ECL_POLYHEDRAL_GRID_VANGUARD_HH @@ -31,7 +31,7 @@ #include -namespace Ewoms { +namespace Opm { template class EclPolyhedralGridVanguard; } @@ -41,13 +41,13 @@ BEGIN_PROPERTIES NEW_TYPE_TAG(EclPolyhedralGridVanguard, INHERITS_FROM(EclBaseVanguard)); // declare the properties -SET_TYPE_PROP(EclPolyhedralGridVanguard, Vanguard, Ewoms::EclPolyhedralGridVanguard); +SET_TYPE_PROP(EclPolyhedralGridVanguard, Vanguard, Opm::EclPolyhedralGridVanguard); SET_TYPE_PROP(EclPolyhedralGridVanguard, Grid, Dune::PolyhedralGrid<3, 3>); SET_TYPE_PROP(EclPolyhedralGridVanguard, EquilGrid, typename GET_PROP_TYPE(TypeTag, Grid)); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -165,6 +165,6 @@ protected: CartesianIndexMapperPointer cartesianIndexMapper_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index cf34990e7..a1fde422c 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::EclProblem + * \copydoc Opm::EclProblem */ #ifndef EWOMS_ECL_PROBLEM_HH #define EWOMS_ECL_PROBLEM_HH @@ -109,7 +109,7 @@ #include #include -namespace Ewoms { +namespace Opm { template class EclProblem; } @@ -162,7 +162,7 @@ NEW_PROP_TAG(EclRestartShrinkFactor); NEW_PROP_TAG(EclEnableTuning); // Set the problem property -SET_TYPE_PROP(EclBaseProblem, Problem, Ewoms::EclProblem); +SET_TYPE_PROP(EclBaseProblem, Problem, Opm::EclProblem); // Select the element centered finite volume method as spatial discretization SET_TAG_PROP(EclBaseProblem, SpatialDiscretizationSplice, EcfvDiscretization); @@ -223,14 +223,14 @@ private: typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView; public: - typedef Ewoms::EcfvStencil type; + typedef Opm::EcfvStencil type; }; // by default use the dummy aquifer "model" -SET_TYPE_PROP(EclBaseProblem, EclAquiferModel, Ewoms::EclBaseAquiferModel); +SET_TYPE_PROP(EclBaseProblem, EclAquiferModel, Opm::EclBaseAquiferModel); // use the built-in proof of concept well model by default SET_TYPE_PROP(EclBaseProblem, EclWellModel, EclWellManager); @@ -323,14 +323,14 @@ SET_BOOL_PROP(EclBaseProblem, EnableIntensiveQuantityCache, true); SET_BOOL_PROP(EclBaseProblem, EnableStorageCache, true); // Use the "velocity module" which uses the Eclipse "NEWTRAN" transmissibilities -SET_TYPE_PROP(EclBaseProblem, FluxModule, Ewoms::EclTransFluxModule); +SET_TYPE_PROP(EclBaseProblem, FluxModule, Opm::EclTransFluxModule); // Use the dummy gradient calculator in order not to do unnecessary work. -SET_TYPE_PROP(EclBaseProblem, GradientCalculator, Ewoms::EclDummyGradientCalculator); +SET_TYPE_PROP(EclBaseProblem, GradientCalculator, Opm::EclDummyGradientCalculator); // Use a custom Newton-Raphson method class for ebos in order to attain more // sophisticated update and error computation mechanisms -SET_TYPE_PROP(EclBaseProblem, NewtonMethod, Ewoms::EclNewtonMethod); +SET_TYPE_PROP(EclBaseProblem, NewtonMethod, Opm::EclNewtonMethod); // The frequency of writing restart (*.ers) files. This is the number of time steps // between writing restart files @@ -371,7 +371,7 @@ SET_BOOL_PROP(EclBaseProblem, EclEnableTuning, false); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -2437,7 +2437,7 @@ private: const auto& simulator = this->simulator(); // initial condition corresponds to hydrostatic conditions. - typedef Ewoms::EclEquilInitializer EquilInitializer; + typedef Opm::EclEquilInitializer EquilInitializer; EquilInitializer equilInitializer(simulator, *materialLawManager_); size_t numElems = this->model().numGridDof(); @@ -3184,6 +3184,6 @@ private: template std::string EclProblem::briefDescription_; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclthresholdpressure.hh b/ebos/eclthresholdpressure.hh index 4e5046330..258927374 100644 --- a/ebos/eclthresholdpressure.hh +++ b/ebos/eclthresholdpressure.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::EclThresholdPressure + * \copydoc Opm::EclThresholdPressure */ #ifndef EWOMS_ECL_THRESHOLD_PRESSURE_HH #define EWOMS_ECL_THRESHOLD_PRESSURE_HH @@ -60,7 +60,7 @@ NEW_PROP_TAG(EnableExperiments); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -399,6 +399,6 @@ private: bool enableThresholdPressure_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/ecltracermodel.hh b/ebos/ecltracermodel.hh index 97b4a4ce0..60bd36ff7 100644 --- a/ebos/ecltracermodel.hh +++ b/ebos/ecltracermodel.hh @@ -23,7 +23,7 @@ /** * \file * - * \copydoc Ewoms::EclTracerModel + * \copydoc Opm::EclTracerModel */ #ifndef EWOMS_ECL_TRACER_MODEL_HH #define EWOMS_ECL_TRACER_MODEL_HH @@ -48,7 +48,7 @@ NEW_PROP_TAG(EnableTracerModel); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -521,6 +521,6 @@ protected: std::vector>> storageOfTimeIndex1_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/ecltransmissibility.hh b/ebos/ecltransmissibility.hh index 354172b34..cfd0d90f0 100644 --- a/ebos/ecltransmissibility.hh +++ b/ebos/ecltransmissibility.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::EclTransmissibility + * \copydoc Opm::EclTransmissibility */ #ifndef EWOMS_ECL_TRANSMISSIBILITY_HH #define EWOMS_ECL_TRANSMISSIBILITY_HH @@ -65,7 +65,7 @@ NEW_PROP_TAG(EnableEnergy); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -910,6 +910,6 @@ private: std::unordered_map > thermalHalfTrans_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclwellmanager.hh b/ebos/eclwellmanager.hh index a08f7770d..e465d28d1 100644 --- a/ebos/eclwellmanager.hh +++ b/ebos/eclwellmanager.hh @@ -23,7 +23,7 @@ /** * \file * - * \copydoc Ewoms::EclWellManager + * \copydoc Opm::EclWellManager */ #ifndef EWOMS_ECL_WELL_MANAGER_HH #define EWOMS_ECL_WELL_MANAGER_HH @@ -57,7 +57,7 @@ NEW_PROP_TAG(Grid); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup EclBlackOilSimulator @@ -85,7 +85,7 @@ class EclWellManager typedef typename GridView::template Codim<0>::Entity Element; - typedef Ewoms::EclPeacemanWell Well; + typedef Opm::EclPeacemanWell Well; typedef std::map > > WellConnectionsMap; @@ -806,6 +806,6 @@ protected: std::map > wellTotalInjectedVolume_; std::map > wellTotalProducedVolume_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/eclwriter.hh b/ebos/eclwriter.hh index c284cca3b..4649aed1b 100644 --- a/ebos/eclwriter.hh +++ b/ebos/eclwriter.hh @@ -23,7 +23,7 @@ /*! * \file * - * \copydoc Ewoms::EclWriter + * \copydoc Opm::EclWriter */ #ifndef EWOMS_ECL_WRITER_HH #define EWOMS_ECL_WRITER_HH @@ -66,7 +66,7 @@ NEW_PROP_TAG(EclOutputDoublePrecision); END_PROPERTIES -namespace Ewoms { +namespace Opm { template class EclWriter; @@ -711,6 +711,6 @@ private: }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/ebos/equil/equilibrationhelpers.hh b/ebos/equil/equilibrationhelpers.hh index 957c7d9ce..913193a6f 100644 --- a/ebos/equil/equilibrationhelpers.hh +++ b/ebos/equil/equilibrationhelpers.hh @@ -80,7 +80,7 @@ ---- end of synopsis of EquilibrationHelpers.hpp ---- */ -namespace Ewoms { +namespace Opm { /** * Types and routines that collectively implement a basic * ECLIPSE-style equilibration-based initialisation scheme. @@ -994,6 +994,6 @@ bool isConstPc(const MaterialLawManager& materialLawManager, } } // namespace Equil -} // namespace Ewoms +} // namespace Opm #endif // EWOMS_EQUILIBRATIONHELPERS_HH diff --git a/ebos/equil/initstateequil.hh b/ebos/equil/initstateequil.hh index 3a63f0585..3a0dfdcd6 100644 --- a/ebos/equil/initstateequil.hh +++ b/ebos/equil/initstateequil.hh @@ -67,7 +67,7 @@ NEW_PROP_TAG(FluidSystem); END_PROPERTIES -namespace Ewoms { +namespace Opm { /** * Types and routines that collectively implement a basic diff --git a/ebos/mebos_main.cc b/ebos/mebos_main.cc index 8615c0455..94bdc33f1 100644 --- a/ebos/mebos_main.cc +++ b/ebos/mebos_main.cc @@ -58,16 +58,16 @@ int main(int argc, char **argv) Dune::Timer externalSetupTimer; externalSetupTimer.start(); - if (!Ewoms::ebosBlackOilDeckFileNameIsSet(argc, argv)) + if (!Opm::ebosBlackOilDeckFileNameIsSet(argc, argv)) // no deck was specified, e.g., --help. use the black oil variant to figure out // what exactly should be done - return Ewoms::ebosBlackOilMain(argc, argv); + return Opm::ebosBlackOilMain(argc, argv); std::string deckFileName = - Ewoms::ebosBlackOilGetDeckFileName(argc, argv); + Opm::ebosBlackOilGetDeckFileName(argc, argv); std::unique_ptr parseContext - = Ewoms::ebosBlackOilCreateParseContext(argc, argv); + = Opm::ebosBlackOilCreateParseContext(argc, argv); std::unique_ptr errorGuard(new Opm::ErrorGuard); // deal with parallel runs @@ -143,21 +143,21 @@ int main(int argc, char **argv) if (oilActive && waterActive) { if (myRank == 0) std::cout << "Using oil-water mode" << std::endl; - Ewoms::ebosOilWaterSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosOilWaterMain(argc, argv); + Opm::ebosOilWaterSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosOilWaterMain(argc, argv); } else if (oilActive && gasActive) { // run ebos_gasoil if (myRank == 0) std::cout << "Using gas-oil mode" << std::endl; - Ewoms::ebosGasOilSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosGasOilMain(argc, argv); + Opm::ebosGasOilSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosGasOilMain(argc, argv); } else if (waterActive && gasActive) { notSupportedErrorStream << "\n" @@ -191,11 +191,11 @@ int main(int argc, char **argv) // run ebos_foam if (myRank == 0) std::cout << "Using foam mode" << std::endl; - Ewoms::ebosFoamSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosFoamMain(argc, argv); + Opm::ebosFoamSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosFoamMain(argc, argv); } else if (polymerActive) { if (solventActive) { @@ -222,11 +222,11 @@ int main(int argc, char **argv) // run ebos_polymer if (myRank == 0) std::cout << "Using polymer mode" << std::endl; - Ewoms::ebosPolymerSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosPolymerMain(argc, argv); + Opm::ebosPolymerSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosPolymerMain(argc, argv); } else if (solventActive) { if (polymerActive) { @@ -253,11 +253,11 @@ int main(int argc, char **argv) // run ebos_solvent if (myRank == 0) std::cout << "Using solvent mode" << std::endl; - Ewoms::ebosSolventSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosSolventMain(argc, argv); + Opm::ebosSolventSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosSolventMain(argc, argv); } else if (thermalActive) { if (solventActive) { @@ -284,20 +284,20 @@ int main(int argc, char **argv) // run ebos_thermal if (myRank == 0) std::cout << "Using thermal mode" << std::endl; - Ewoms::ebosThermalSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosThermalMain(argc, argv); + Opm::ebosThermalSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosThermalMain(argc, argv); } else { if (myRank == 0) std::cout << "Using blackoil mode" << std::endl; - Ewoms::ebosBlackOilSetDeck(deck.get(), - parseContext.get(), - errorGuard.get(), - externalSetupTimer.elapsed()); - return Ewoms::ebosBlackOilMain(argc, argv); + Opm::ebosBlackOilSetDeck(deck.get(), + parseContext.get(), + errorGuard.get(), + externalSetupTimer.elapsed()); + return Opm::ebosBlackOilMain(argc, argv); } if (myRank == 0) diff --git a/ebos/nncsorter.cpp b/ebos/nncsorter.cpp index bc1f7ce15..56c2290b3 100644 --- a/ebos/nncsorter.cpp +++ b/ebos/nncsorter.cpp @@ -28,7 +28,7 @@ #include #include #include -namespace Ewoms +namespace Opm { std::vector sortNncAndApplyEditnnc(const std::vector& nncDataIn, std::vector editnncData, bool log ) @@ -92,4 +92,4 @@ std::vector sortNncAndApplyEditnnc(const std::vector } return nncData; } -} // end namespace Ewoms +} // end namespace Opm diff --git a/ebos/nncsorter.hpp b/ebos/nncsorter.hpp index f579c4f16..0bfc7dad0 100644 --- a/ebos/nncsorter.hpp +++ b/ebos/nncsorter.hpp @@ -29,7 +29,7 @@ #include -namespace Ewoms +namespace Opm { /// \brief Scale NNC data wit informtion form EDITNNC and sort it. /// \param nncData The NNC data as provided by the deck. diff --git a/ebos/tracervdtable.hh b/ebos/tracervdtable.hh index 9d25f3f63..88818a01e 100644 --- a/ebos/tracervdtable.hh +++ b/ebos/tracervdtable.hh @@ -23,14 +23,14 @@ /*! * \file * - * \copydoc Ewoms::TracerVdTable + * \copydoc Opm::TracerVdTable */ #ifndef EWOMS_TRACER_VD_TABLE_HH #define EWOMS_TRACER_VD_TABLE_HH #include -namespace Ewoms { +namespace Opm { /*! * \brief A class that contains tracer concentration vs depth table diff --git a/ebos/vtkecltracermodule.hh b/ebos/vtkecltracermodule.hh index 4adabb541..db358c9f2 100644 --- a/ebos/vtkecltracermodule.hh +++ b/ebos/vtkecltracermodule.hh @@ -22,7 +22,7 @@ */ /*! * \file - * \copydoc Ewoms::VtkEclTracerModule + * \copydoc Opm::VtkEclTracerModule */ #ifndef EWOMS_VTK_ECL_TRACER_MODULE_HH #define EWOMS_VTK_ECL_TRACER_MODULE_HH @@ -54,7 +54,7 @@ NEW_PROP_TAG(VtkWriteEclTracerConcentration); SET_BOOL_PROP(VtkEclTracer, VtkWriteEclTracerConcentration, false); END_PROPERTIES -namespace Ewoms { +namespace Opm { /*! * \ingroup Vtk * @@ -74,7 +74,7 @@ namespace Ewoms { typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem; static const int vtkFormat = GET_PROP_VALUE(TypeTag, VtkOutputFormat); - typedef Ewoms::VtkMultiWriter VtkMultiWriter; + typedef Opm::VtkMultiWriter VtkMultiWriter; typedef typename ParentType::ScalarBuffer ScalarBuffer; @@ -165,6 +165,6 @@ namespace Ewoms { std::vector eclTracerConcentration_; }; -} // namespace Ewoms +} // namespace Opm #endif diff --git a/flow/flow_blackoil_dunecpr.cpp b/flow/flow_blackoil_dunecpr.cpp index 535f42695..f6f08f472 100644 --- a/flow/flow_blackoil_dunecpr.cpp +++ b/flow/flow_blackoil_dunecpr.cpp @@ -30,7 +30,7 @@ BEGIN_PROPERTIES NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem)); NEW_PROP_TAG(FluidState); -//SET_TYPE_PROP(EclBaseProblem, Problem, Ewoms::EclProblem); +//SET_TYPE_PROP(EclBaseProblem, Problem, Opm::EclProblem); SET_PROP(EclFlowProblemSimple, FluidState) { private: @@ -62,7 +62,7 @@ SET_INT_PROP(EclFlowProblemSimple, CprSolverVerbose, 0); SET_STRING_PROP(EclFlowProblemSimple, SystemStrategy, "quasiimpes"); END_PROPERTIES -namespace Ewoms { +namespace Opm { namespace Properties { SET_PROP(EclFlowProblemSimple, FluidSystem) @@ -76,11 +76,11 @@ namespace Ewoms { typedef Opm::BlackOilFluidSystem type; }; //NEW_TYPE_TAG(EclFlowProblem, INHERITS_FROM(BlackOilModel, EclBaseProblem)); - SET_TYPE_PROP(EclFlowProblemSimple, IntensiveQuantities, Ewoms::BlackOilIntensiveQuantities); + SET_TYPE_PROP(EclFlowProblemSimple, IntensiveQuantities, Opm::BlackOilIntensiveQuantities); //SET_TYPE_PROP(EclFlowProblemSimple, LinearSolverBackend, Opm::ISTLSolverEbos); //SET_TAG_PROP(EclFlowProblemSimple, LinearSolverSplice, ParallelBiCGStabLinearSolver); - //SET_TYPE_PROP(EclFlowProblemSimple, LinearSolverBackend, Ewoms::Linear::ParallelBiCGStabSolverBackend);//not work - //SET_TYPE_PROP(EclFlowProblemSimple, LinearSolverBackend, Ewoms::Linear::SuperLUBackend)//not work + //SET_TYPE_PROP(EclFlowProblemSimple, LinearSolverBackend, Opm::Linear::ParallelBiCGStabSolverBackend);//not work + //SET_TYPE_PROP(EclFlowProblemSimple, LinearSolverBackend, Opm::Linear::SuperLUBackend)//not work //SET_TAG_PROP(EclFlowProblem, FluidState, Opm::BlackOilFluidState); #if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 6) SET_TYPE_PROP(EclFlowProblemSimple, LinearSolverBackend, Opm::ISTLSolverEbosFlexible); diff --git a/flow/flow_ebos_energy.cpp b/flow/flow_ebos_energy.cpp index 378b7029a..6fd2cb949 100644 --- a/flow/flow_ebos_energy.cpp +++ b/flow/flow_ebos_energy.cpp @@ -29,7 +29,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowEnergyProblem, INHERITS_FROM(EclFlowProblem)); SET_BOOL_PROP(EclFlowEnergyProblem, EnableEnergy, true); diff --git a/flow/flow_ebos_foam.cpp b/flow/flow_ebos_foam.cpp index 65a4748cf..9037c5622 100644 --- a/flow/flow_ebos_foam.cpp +++ b/flow/flow_ebos_foam.cpp @@ -29,7 +29,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowFoamProblem, INHERITS_FROM(EclFlowProblem)); SET_BOOL_PROP(EclFlowFoamProblem, EnableFoam, true); diff --git a/flow/flow_ebos_gasoil.cpp b/flow/flow_ebos_gasoil.cpp index 022b42180..30d7437d3 100644 --- a/flow/flow_ebos_gasoil.cpp +++ b/flow/flow_ebos_gasoil.cpp @@ -34,7 +34,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowGasOilProblem, INHERITS_FROM(EclFlowProblem)); @@ -49,12 +49,12 @@ private: typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem; public: - typedef Ewoms::BlackOilTwoPhaseIndices type; + typedef Opm::BlackOilTwoPhaseIndices type; }; }} diff --git a/flow/flow_ebos_oilwater.cpp b/flow/flow_ebos_oilwater.cpp index 5c863a2bc..4137298be 100644 --- a/flow/flow_ebos_oilwater.cpp +++ b/flow/flow_ebos_oilwater.cpp @@ -34,7 +34,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowOilWaterProblem, INHERITS_FROM(EclFlowProblem)); @@ -49,12 +49,12 @@ private: typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem; public: - typedef Ewoms::BlackOilTwoPhaseIndices type; + typedef Opm::BlackOilTwoPhaseIndices type; }; }} diff --git a/flow/flow_ebos_oilwater_polymer.cpp b/flow/flow_ebos_oilwater_polymer.cpp index df8fb00a0..8b1ceb0d4 100644 --- a/flow/flow_ebos_oilwater_polymer.cpp +++ b/flow/flow_ebos_oilwater_polymer.cpp @@ -34,7 +34,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowOilWaterPolymerProblem, INHERITS_FROM(EclFlowProblem)); SET_BOOL_PROP(EclFlowOilWaterPolymerProblem, EnablePolymer, true); @@ -50,12 +50,12 @@ private: typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem; public: - typedef Ewoms::BlackOilTwoPhaseIndices type; + typedef Opm::BlackOilTwoPhaseIndices type; }; }} diff --git a/flow/flow_ebos_oilwater_polymer_injectivity.cpp b/flow/flow_ebos_oilwater_polymer_injectivity.cpp index f8efa7e53..88fbb2436 100644 --- a/flow/flow_ebos_oilwater_polymer_injectivity.cpp +++ b/flow/flow_ebos_oilwater_polymer_injectivity.cpp @@ -34,7 +34,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowOilWaterPolymerInjectivityProblem, INHERITS_FROM(EclFlowProblem)); SET_BOOL_PROP(EclFlowOilWaterPolymerInjectivityProblem, EnablePolymer, true); @@ -52,12 +52,12 @@ private: typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem; public: - typedef Ewoms::BlackOilTwoPhaseIndices<0, - 2, - 0, - GET_PROP_VALUE(TypeTag, EnableFoam), - /*PVOffset=*/0, - /*disabledCompIdx=*/FluidSystem::gasCompIdx> type; + typedef Opm::BlackOilTwoPhaseIndices<0, + 2, + 0, + GET_PROP_VALUE(TypeTag, EnableFoam), + /*PVOffset=*/0, + /*disabledCompIdx=*/FluidSystem::gasCompIdx> type; }; }} diff --git a/flow/flow_ebos_polymer.cpp b/flow/flow_ebos_polymer.cpp index aa05eb16d..23357e288 100644 --- a/flow/flow_ebos_polymer.cpp +++ b/flow/flow_ebos_polymer.cpp @@ -29,7 +29,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowPolymerProblem, INHERITS_FROM(EclFlowProblem)); SET_BOOL_PROP(EclFlowPolymerProblem, EnablePolymer, true); diff --git a/flow/flow_ebos_solvent.cpp b/flow/flow_ebos_solvent.cpp index 420247495..5b720e9e0 100644 --- a/flow/flow_ebos_solvent.cpp +++ b/flow/flow_ebos_solvent.cpp @@ -29,7 +29,7 @@ #include #endif -namespace Ewoms { +namespace Opm { namespace Properties { NEW_TYPE_TAG(EclFlowSolventProblem, INHERITS_FROM(EclFlowProblem)); SET_BOOL_PROP(EclFlowSolventProblem, EnableSolvent, true); diff --git a/flow/flow_tag.hpp b/flow/flow_tag.hpp index c709e3123..d2562b810 100644 --- a/flow/flow_tag.hpp +++ b/flow/flow_tag.hpp @@ -169,7 +169,7 @@ int mainFlow(int argc, char** argv, bool outputCout, bool outputFiles) deckFilename = PreVanguard::canonicalDeckPath(deckFilename).string(); } catch (const std::exception& e) { - Ewoms::Parameters::printUsage(PreProblem::helpPreamble(argc, const_cast(argv)), + Opm::Parameters::printUsage(PreProblem::helpPreamble(argc, const_cast(argv)), e.what()); return 1; } diff --git a/opm/simulators/flow/FlowMainEbos.hpp b/opm/simulators/flow/FlowMainEbos.hpp index f76457487..799308550 100644 --- a/opm/simulators/flow/FlowMainEbos.hpp +++ b/opm/simulators/flow/FlowMainEbos.hpp @@ -99,7 +99,7 @@ namespace Opm Simulator::registerParameters(); // register the parameters inherited from ebos - Ewoms::registerAllParameters_(/*finalizeRegistration=*/false); + Opm::registerAllParameters_(/*finalizeRegistration=*/false); // hide the parameters unused by flow. TODO: this is a pain to maintain EWOMS_HIDE_PARAM(TypeTag, EnableGravity); @@ -148,7 +148,7 @@ namespace Opm EWOMS_END_PARAM_REGISTRATION(TypeTag); // read in the command line parameters - int status = Ewoms::setupParameters_(argc, const_cast(argv), /*doRegistration=*/false, /*allowUnused=*/true, /*handleHelp=*/true); + int status = Opm::setupParameters_(argc, const_cast(argv), /*doRegistration=*/false, /*allowUnused=*/true, /*handleHelp=*/true); if (status == 0) { // deal with --print-properties and --print-parameters @@ -161,13 +161,13 @@ namespace Opm if (EWOMS_GET_PARAM(TypeTag, int, PrintProperties) == 1) { doExit = true; if (mpiRank == 0) - Ewoms::Properties::printValues(); + Opm::Properties::printValues(); } if (EWOMS_GET_PARAM(TypeTag, int, PrintParameters) == 1) { doExit = true; if (mpiRank == 0) - Ewoms::Parameters::printValues(); + Opm::Parameters::printValues(); } if (doExit) @@ -329,14 +329,14 @@ namespace Opm ss << "Simulation started on " << tmstr << " hrs\n"; ss << "Parameters used by Flow:\n"; - Ewoms::Parameters::printValues(ss); + Opm::Parameters::printValues(ss); OpmLog::note(ss.str()); } if ( mpi_rank_ == 0 ) { - return Ewoms::Parameters::printUnused(std::cerr); + return Opm::Parameters::printUnused(std::cerr); } else { @@ -458,7 +458,7 @@ namespace Opm // This allows a user to catch typos and misunderstandings in the // use of simulator parameters. - if (Ewoms::Parameters::printUnused(oss)) { + if (Opm::Parameters::printUnused(oss)) { std::cout << "----------------- Unrecognized parameters: -----------------\n"; std::cout << oss.str(); std::cout << "----------------------------------------------------------------" << std::endl; diff --git a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp index 9d4dd562e..5e5e4ef32 100644 --- a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp +++ b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp @@ -65,7 +65,7 @@ public: typedef typename GET_PROP_TYPE(TypeTag, MaterialLawParams) MaterialLawParams; typedef AdaptiveTimeSteppingEbos TimeStepper; - typedef Ewoms::BlackOilPolymerModule PolymerModule; + typedef Opm::BlackOilPolymerModule PolymerModule; typedef WellStateFullyImplicitBlackoil WellState; typedef BlackoilModelEbos Model; diff --git a/opm/simulators/linalg/BlackoilAmg.hpp b/opm/simulators/linalg/BlackoilAmg.hpp index e0963cdf3..850dde719 100644 --- a/opm/simulators/linalg/BlackoilAmg.hpp +++ b/opm/simulators/linalg/BlackoilAmg.hpp @@ -187,9 +187,9 @@ struct ScalarType > }; template -struct ScalarType > +struct ScalarType > { - typedef Ewoms::MatrixBlock value; + typedef Opm::MatrixBlock value; }; template diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index 9678dc173..ab24385ab 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -63,10 +63,10 @@ SET_PROP(FlowIstlSolver, SparseMatrixAdapter) private: typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; enum { numEq = GET_PROP_VALUE(TypeTag, NumEq) }; - typedef Ewoms::MatrixBlock Block; + typedef Opm::MatrixBlock Block; public: - typedef typename Ewoms::Linear::IstlSparseMatrixAdapter type; + typedef typename Opm::Linear::IstlSparseMatrixAdapter type; }; END_PROPERTIES diff --git a/opm/simulators/wells/BlackoilWellModel.hpp b/opm/simulators/wells/BlackoilWellModel.hpp index 1452ff3e6..25e7188dd 100644 --- a/opm/simulators/wells/BlackoilWellModel.hpp +++ b/opm/simulators/wells/BlackoilWellModel.hpp @@ -66,7 +66,7 @@ namespace Opm { /// Class for handling the blackoil well model. template - class BlackoilWellModel : public Ewoms::BaseAuxiliaryModule + class BlackoilWellModel : public Opm::BaseAuxiliaryModule { public: // --------- Types --------- @@ -83,7 +83,7 @@ namespace Opm { typedef typename GET_PROP_TYPE(TypeTag, GlobalEqVector) GlobalEqVector; typedef typename GET_PROP_TYPE(TypeTag, SparseMatrixAdapter) SparseMatrixAdapter; - typedef typename Ewoms::BaseAuxiliaryModule::NeighborSet NeighborSet; + typedef typename Opm::BaseAuxiliaryModule::NeighborSet NeighborSet; static const int numEq = Indices::numEq; static const int solventSaturationIdx = Indices::solventSaturationIdx; @@ -102,7 +102,7 @@ namespace Opm { #endif typedef typename SparseMatrixAdapter::IstlMatrix Mat; - typedef Ewoms::BlackOilPolymerModule PolymerModule; + typedef Opm::BlackOilPolymerModule PolymerModule; // For the conversion between the surface volume rate and resrevoir voidage rate using RateConverterType = RateConverter:: diff --git a/opm/simulators/wells/StandardWell.hpp b/opm/simulators/wells/StandardWell.hpp index cb644c8f1..718f8dc46 100644 --- a/opm/simulators/wells/StandardWell.hpp +++ b/opm/simulators/wells/StandardWell.hpp @@ -66,8 +66,8 @@ namespace Opm using Base::has_foam; using Base::has_energy; - using PolymerModule = Ewoms::BlackOilPolymerModule; - using FoamModule = Ewoms::BlackOilFoamModule; + using PolymerModule = Opm::BlackOilPolymerModule; + using FoamModule = Opm::BlackOilFoamModule; // polymer concentration and temperature are already known by the well, so // polymer and energy conservation do not need to be considered explicitly diff --git a/opm/simulators/wells/WellConnectionAuxiliaryModule.hpp b/opm/simulators/wells/WellConnectionAuxiliaryModule.hpp index 726f2fd47..f5cb8266f 100644 --- a/opm/simulators/wells/WellConnectionAuxiliaryModule.hpp +++ b/opm/simulators/wells/WellConnectionAuxiliaryModule.hpp @@ -33,7 +33,7 @@ namespace Opm { template class WellConnectionAuxiliaryModule - : public Ewoms::BaseAuxiliaryModule + : public Opm::BaseAuxiliaryModule { typedef typename GET_PROP_TYPE(TypeTag, GlobalEqVector) GlobalEqVector; typedef typename GET_PROP_TYPE(TypeTag, SparseMatrixAdapter) SparseMatrixAdapter; @@ -41,7 +41,7 @@ class WellConnectionAuxiliaryModule public: using NeighborSet = typename - Ewoms::BaseAuxiliaryModule::NeighborSet; + Opm::BaseAuxiliaryModule::NeighborSet; WellConnectionAuxiliaryModule(const Schedule& schedule, const Dune::CpGrid& grid) diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index 54653c4f5..e2d6ad777 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -1208,7 +1208,7 @@ namespace Opm if (well_controls_get_current(wc) != -1 && well_controls_get_current_type(wc) == RESERVOIR_RATE) { if (has_solvent && phaseIdx == contiSolventEqIdx ) { - typedef Ewoms::BlackOilSolventModule SolventModule; + typedef Opm::BlackOilSolventModule SolventModule; double coeff = 0; rateConverter_.template calcCoeffSolvent(0, pvtRegionIdx_, coeff); return coeff; diff --git a/tests/test_ecl_output.cc b/tests/test_ecl_output.cc index bc008453b..ee3d1d78b 100644 --- a/tests/test_ecl_output.cc +++ b/tests/test_ecl_output.cc @@ -97,7 +97,7 @@ initSimulator(const char *filename) filenameArg.c_str() }; - Ewoms::setupParameters_(/*argc=*/sizeof(argv)/sizeof(argv[0]), argv, /*registerParams=*/false); + Opm::setupParameters_(/*argc=*/sizeof(argv)/sizeof(argv[0]), argv, /*registerParams=*/false); return std::unique_ptr(new Simulator); } @@ -118,11 +118,11 @@ void test_summary() auto simulator = initSimulator(filename.data()); typedef typename GET_PROP_TYPE(TypeTag, Vanguard) Vanguard; - typedef Ewoms::CollectDataToIORank< Vanguard > CollectDataToIORankType; + typedef Opm::CollectDataToIORank< Vanguard > CollectDataToIORankType; CollectDataToIORankType collectToIORank(simulator->vanguard()); - Ewoms::EclOutputBlackOilModule eclOutputModule(*simulator, collectToIORank); + Opm::EclOutputBlackOilModule eclOutputModule(*simulator, collectToIORank); - typedef Ewoms::EclWriter EclWriterType; + typedef Opm::EclWriter EclWriterType; // create the actual ECL writer std::unique_ptr eclWriter = std::unique_ptr(new EclWriterType(*simulator)); @@ -253,7 +253,7 @@ int main(int argc, char** argv) #endif typedef TTAG(TestEclOutputTypeTag) TypeTag; - Ewoms::registerAllParameters_(); + Opm::registerAllParameters_(); test_summary(); test_readWriteWells(); diff --git a/tests/test_equil.cc b/tests/test_equil.cc index d8bc149d4..fdecd161e 100644 --- a/tests/test_equil.cc +++ b/tests/test_equil.cc @@ -86,7 +86,7 @@ initSimulator(const char *filename) filenameArg.c_str() }; - Ewoms::setupParameters_(/*argc=*/sizeof(argv)/sizeof(argv[0]), argv, /*registerParams=*/false); + Opm::setupParameters_(/*argc=*/sizeof(argv)/sizeof(argv[0]), argv, /*registerParams=*/false); return std::unique_ptr(new Simulator); } @@ -227,17 +227,17 @@ void test_PhasePressure() auto simulator = initSimulator("equil_base.DATA"); initDefaultFluidSystem(); - Ewoms::EQUIL::EquilReg + Opm::EQUIL::EquilReg region(record, - std::make_shared(), - std::make_shared(), + std::make_shared(), + std::make_shared(), 0); std::vector cells(simulator->vanguard().grid().size(0)); std::iota(cells.begin(), cells.end(), 0); const double grav = 10; - const PPress ppress = Ewoms::EQUIL::phasePressures(simulator->vanguard().grid(), region, cells, grav); + const PPress ppress = Opm::EQUIL::phasePressures(simulator->vanguard().grid(), region, cells, grav); const int first = 0, last = simulator->vanguard().grid().size(0) - 1; const double reltol = 1.0e-8; @@ -264,26 +264,26 @@ void test_CellSubset() Opm::EquilRecord record[] = { mkEquilRecord( 0, 1e5, 2.5, -0.075e5, 0, 0 ), mkEquilRecord( 5, 1.35e5, 7.5, -0.225e5, 5, 0 ) }; - Ewoms::EQUIL::EquilReg region[] = + Opm::EQUIL::EquilReg region[] = { - Ewoms::EQUIL::EquilReg(record[0], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[0], + std::make_shared(), + std::make_shared(), 0) , - Ewoms::EQUIL::EquilReg(record[0], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[0], + std::make_shared(), + std::make_shared(), 0) , - Ewoms::EQUIL::EquilReg(record[1], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[1], + std::make_shared(), + std::make_shared(), 0) , - Ewoms::EQUIL::EquilReg(record[1], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[1], + std::make_shared(), + std::make_shared(), 0) }; @@ -315,7 +315,7 @@ void test_CellSubset() const int rno = int(r - cells.begin()); const double grav = 10; const PPress p = - Ewoms::EQUIL::phasePressures(simulator->vanguard().grid(), region[rno], *r, grav); + Opm::EQUIL::phasePressures(simulator->vanguard().grid(), region[rno], *r, grav); PVal::size_type i = 0; for (std::vector::const_iterator @@ -351,26 +351,26 @@ void test_RegMapping() auto simulator = initSimulator("equil_base.DATA"); initDefaultFluidSystem(); - Ewoms::EQUIL::EquilReg region[] = + Opm::EQUIL::EquilReg region[] = { - Ewoms::EQUIL::EquilReg(record[0], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[0], + std::make_shared(), + std::make_shared(), 0) , - Ewoms::EQUIL::EquilReg(record[0], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[0], + std::make_shared(), + std::make_shared(), 0) , - Ewoms::EQUIL::EquilReg(record[1], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[1], + std::make_shared(), + std::make_shared(), 0) , - Ewoms::EQUIL::EquilReg(record[1], - std::make_shared(), - std::make_shared(), + Opm::EQUIL::EquilReg(record[1], + std::make_shared(), + std::make_shared(), 0) }; @@ -404,7 +404,7 @@ void test_RegMapping() const int rno = r; const double grav = 10; const PPress p = - Ewoms::EQUIL::phasePressures(simulator->vanguard().grid(), region[rno], rng, grav); + Opm::EQUIL::phasePressures(simulator->vanguard().grid(), region[rno], rng, grav); PVal::size_type i = 0; for (const auto& c : rng) { @@ -435,7 +435,7 @@ void test_DeckAllDead() Opm::GridManager gm(eclipseState.getInputGrid()); const UnstructuredGrid& grid = *(gm.c_grid()); - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 10.0); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 10.0); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); REQUIRE(int(pressures[0].size()) == grid.number_of_cells); @@ -471,7 +471,7 @@ void test_CapillaryInversion() const std::vector s = { 0.2, 0.2, 0.2, 0.466666666666, 0.733333333333, 1.0, 1.0, 1.0, 1.0 }; REQUIRE(pc.size() == s.size()); for (size_t i = 0; i < pc.size(); ++i) { - const double s_computed = Ewoms::EQUIL::satFromPc(*simulator->problem().materialLawManager(), phase, cell, pc[i], increasing); + const double s_computed = Opm::EQUIL::satFromPc(*simulator->problem().materialLawManager(), phase, cell, pc[i], increasing); CHECK_CLOSE(s_computed, s[i], reltol); } } @@ -484,7 +484,7 @@ void test_CapillaryInversion() const std::vector s = { 0.8, 0.8, 0.8, 0.533333333333, 0.266666666666, 0.0, 0.0, 0.0, 0.0 }; REQUIRE(pc.size() == s.size()); for (size_t i = 0; i < pc.size(); ++i) { - const double s_computed = Ewoms::EQUIL::satFromPc(*simulator->problem().materialLawManager(), phase, cell, pc[i], increasing); + const double s_computed = Opm::EQUIL::satFromPc(*simulator->problem().materialLawManager(), phase, cell, pc[i], increasing); CHECK_CLOSE(s_computed, s[i], reltol); } } @@ -497,7 +497,7 @@ void test_CapillaryInversion() const std::vector s = { 0.2, 0.333333333333, 0.6, 0.866666666666, 1.0 }; REQUIRE(pc.size() == s.size()); for (size_t i = 0; i < pc.size(); ++i) { - const double s_computed = Ewoms::EQUIL::satFromSumOfPcs(*simulator->problem().materialLawManager(), water, gas, cell, pc[i]); + const double s_computed = Opm::EQUIL::satFromSumOfPcs(*simulator->problem().materialLawManager(), water, gas, cell, pc[i]); CHECK_CLOSE(s_computed, s[i], reltol); } } @@ -513,7 +513,7 @@ void test_DeckWithCapillary() Opm::GridManager gm(eclipseState.getInputGrid()); const UnstructuredGrid& grid = *(gm.c_grid()); - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 10.0); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 10.0); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); @@ -552,7 +552,7 @@ void test_DeckWithCapillaryOverlap() Opm::GridManager gm(eclipseState.getInputGrid()); const UnstructuredGrid& grid = *(gm.c_grid()); - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); REQUIRE(int(pressures[0].size()) == grid.number_of_cells); @@ -612,7 +612,7 @@ void test_DeckWithLiveOil() const UnstructuredGrid& grid = *(gm.c_grid()); // Initialize the fluid system - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); REQUIRE(int(pressures[0].size()) == grid.number_of_cells); @@ -688,7 +688,7 @@ void test_DeckWithLiveGas() Opm::GridManager gm(eclipseState.getInputGrid()); const UnstructuredGrid& grid = *(gm.c_grid()); - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); REQUIRE(int(pressures[0].size()) == grid.number_of_cells); @@ -767,7 +767,7 @@ void test_DeckWithRSVDAndRVVD() Opm::GridManager gm(eclipseState.getInputGrid()); const UnstructuredGrid& grid = *(gm.c_grid()); - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); REQUIRE(int(pressures[0].size()) == grid.number_of_cells); @@ -867,7 +867,7 @@ void test_DeckWithPBVDAndPDVD() Opm::GridManager gm(eclipseState.getInputGrid()); const UnstructuredGrid& grid = *(gm.c_grid()); - Ewoms::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); + Opm::EQUIL::DeckDependent::InitialStateComputer comp(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.80665); const auto& pressures = comp.press(); REQUIRE(pressures.size() == 3); REQUIRE(int(pressures[0].size()) == grid.number_of_cells); @@ -1038,9 +1038,9 @@ void test_DeckWithSwatinit() // compute the initial state // apply swatinit - Ewoms::EQUIL::DeckDependent::InitialStateComputer compScaled(materialLawManagerScaled, eclipseState, simulator->vanguard().grid(), 9.81, true); + Opm::EQUIL::DeckDependent::InitialStateComputer compScaled(materialLawManagerScaled, eclipseState, simulator->vanguard().grid(), 9.81, true); // don't apply swatinit - Ewoms::EQUIL::DeckDependent::InitialStateComputer compUnscaled(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.81, false); + Opm::EQUIL::DeckDependent::InitialStateComputer compUnscaled(*simulator->problem().materialLawManager(), eclipseState, simulator->vanguard().grid(), 9.81, false); // compute pc std::vector pc_scaled(numCells * FluidSystem::numPhases); @@ -1104,7 +1104,7 @@ int main(int argc, char** argv) #endif typedef TTAG(TestEquilTypeTag) TypeTag; - Ewoms::registerAllParameters_(); + Opm::registerAllParameters_(); test_PhasePressure(); test_CellSubset(); diff --git a/tests/test_nncsorter.cpp b/tests/test_nncsorter.cpp index 841ee1e08..4cd8a3d56 100644 --- a/tests/test_nncsorter.cpp +++ b/tests/test_nncsorter.cpp @@ -36,7 +36,7 @@ BOOST_AUTO_TEST_CASE(Test1) { std::vector nncDataOut2 = { { 1, 2, 0.5 }, { 1, 2, 0.3 }, { 3, 4, 0.4 }, { 8, 9, 10.0 } }; - auto nncDataProcessed = Ewoms::sortNncAndApplyEditnnc(nncDataIn, editnncData); + auto nncDataProcessed = Opm::sortNncAndApplyEditnnc(nncDataIn, editnncData); BOOST_CHECK(nncDataProcessed.size() == nncDataOut1.size()); auto expectedNnc1 = nncDataOut1.begin(); auto expectedNnc2 = nncDataOut2.begin();