diff --git a/opm/core/props/satfunc/RelpermDiagnostics.cpp b/opm/core/props/satfunc/RelpermDiagnostics.cpp index 8567d19d..ce4839e5 100644 --- a/opm/core/props/satfunc/RelpermDiagnostics.cpp +++ b/opm/core/props/satfunc/RelpermDiagnostics.cpp @@ -109,8 +109,10 @@ namespace Opm{ std::shared_ptr< const Deck > deck) { const int numSatRegions = deck->getKeyword("TABDIMS").getRecord(0).getItem("NTSFUN").get< int >(0); - const std::string msg = "Number of saturation regions: " + std::to_string(numSatRegions) + "\n"; - OpmLog::info(msg); + { + const std::string msg = "Number of saturation regions: " + std::to_string(numSatRegions) + "\n"; + OpmLog::info(msg); + } const auto& tableManager = eclState->getTableManager(); const TableContainer& swofTables = tableManager.getSwofTables(); const TableContainer& slgofTables = tableManager.getSlgofTables(); diff --git a/opm/core/simulator/WellState.hpp b/opm/core/simulator/WellState.hpp index baacaa17..a909371e 100644 --- a/opm/core/simulator/WellState.hpp +++ b/opm/core/simulator/WellState.hpp @@ -34,7 +34,7 @@ namespace Opm { - class PhaseUsage; + struct PhaseUsage; /// The state of a set of wells. class WellState