From 131e900cf32cb3b55d8c4a83dc3a1a8904f70a8c Mon Sep 17 00:00:00 2001 From: babrodtk Date: Fri, 22 Apr 2016 08:16:39 +0200 Subject: [PATCH] Code cleanup --- opm/core/simulator/initState_impl.hpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/opm/core/simulator/initState_impl.hpp b/opm/core/simulator/initState_impl.hpp index 38cfe9ba..910262a2 100644 --- a/opm/core/simulator/initState_impl.hpp +++ b/opm/core/simulator/initState_impl.hpp @@ -800,10 +800,6 @@ namespace Opm const Props& props, State& state) { - - //if (props.numPhases() != 3) { - // OPM_THROW(std::runtime_error, "initBlackoilSurfvol() is only supported in three-phase simulations."); - //} const std::vector& rs = state.gasoilratio(); const std::vector& rv = state.rv(); @@ -828,18 +824,6 @@ namespace Opm std::vector capPressures(number_of_cells*np); props.capPress(number_of_cells,&state.saturation()[0],&allcells[0],&capPressures[0],NULL); - /* - * FIXME: This never used? - std::vector Pw(number_of_cells); - std::vector Pg(number_of_cells); - - for (int c = 0; c < number_of_cells; ++c){ - Pw[c] = state.pressure()[c] + capPressures[c*np + BlackoilPhases::Aqua]; - Pg[c] = state.pressure()[c] + capPressures[c*np + BlackoilPhases::Vapour]; - } - */ - - double z_tmp; // Water phase