mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Code cleanup
This commit is contained in:
parent
eabb2e1f64
commit
cae4d39a86
@ -800,10 +800,6 @@ namespace Opm
|
|||||||
const Props& props,
|
const Props& props,
|
||||||
State& state)
|
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>& rs = state.gasoilratio();
|
||||||
const std::vector<double>& rv = state.rv();
|
const std::vector<double>& rv = state.rv();
|
||||||
|
|
||||||
@ -828,18 +824,6 @@ namespace Opm
|
|||||||
std::vector<double> capPressures(number_of_cells*np);
|
std::vector<double> capPressures(number_of_cells*np);
|
||||||
props.capPress(number_of_cells,&state.saturation()[0],&allcells[0],&capPressures[0],NULL);
|
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;
|
double z_tmp;
|
||||||
|
|
||||||
// Water phase
|
// Water phase
|
||||||
|
Loading…
Reference in New Issue
Block a user