Code cleanup

This commit is contained in:
babrodtk 2016-04-22 08:16:39 +02:00
parent eabb2e1f64
commit cae4d39a86

View File

@ -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();
@ -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