Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
babrodtk committed Apr 26, 2016
1 parent c8d5174 commit 131e900
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions opm/core/simulator/initState_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>& rs = state.gasoilratio();
const std::vector<double>& rv = state.rv();

Expand All @@ -828,18 +824,6 @@ namespace Opm
std::vector<double> capPressures(number_of_cells*np);
props.capPress(number_of_cells,&state.saturation()[0],&allcells[0],&capPressures[0],NULL);

/*
* FIXME: This never used?
std::vector<double> Pw(number_of_cells);
std::vector<double> 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
Expand Down

0 comments on commit 131e900

Please sign in to comment.