removing some unused variables

to reduce warnings.
This commit is contained in:
Kai Bao 2017-08-10 16:00:27 +02:00
parent f1c0e84878
commit 66b5226039
4 changed files with 2 additions and 31 deletions

View File

@ -824,7 +824,6 @@ namespace Opm {
const double dt = timer.currentStepLength();
const double tol_mb = param_.tolerance_mb_;
const double tol_cnv = param_.tolerance_cnv_;
const double tol_wells = param_.tolerance_wells_;
const int np = numPhases();
const int numComp = numComponents();

View File

@ -2038,9 +2038,6 @@ namespace Opm
}
}
// the number of wells
const int nw = well_state.bhp().size();
switch (well_controls_get_current_type(wc)) {
case THP:
case BHP: {

View File

@ -150,8 +150,6 @@ namespace Opm {
// xw to update Well State
void applySolutionWellState(const BVector& x, WellState& well_state) const;
int flowToEbosPvIdx( const int flowPv ) const;
int flowPhaseToEbosPhaseIdx( const int phaseIdx ) const;
int numPhases() const;

View File

@ -56,7 +56,6 @@ namespace Opm {
calculateEfficiencyFactors();
const int nw = number_of_wells_;
const int nc = numCells();
#ifndef NDEBUG
@ -298,27 +297,6 @@ namespace Opm {
template<typename TypeTag>
int
StandardWellsDense<TypeTag>::
flowToEbosPvIdx( const int flowPv ) const
{
const int flowToEbos[ 3 ] = {
BlackoilIndices::pressureSwitchIdx,
BlackoilIndices::waterSaturationIdx,
BlackoilIndices::compositionSwitchIdx
};
if (flowPv > 2 )
return flowPv;
return flowToEbos[ flowPv ];
}
template<typename TypeTag>
int
StandardWellsDense<TypeTag>::
@ -838,8 +816,8 @@ namespace Opm {
// We only store the conversion coefficients for all the injection wells.
// Later, more delicate model will be implemented here.
// And for the moment, group control can only work for serial running.
const int nw = well_state.numWells();
const int np = well_state.numPhases();
const int nw = numWells();
const int np = numPhases();
// we calculate the voidage rate for each well, that means the sum of all the phases.
well_voidage_rates.resize(nw, 0);
@ -1002,7 +980,6 @@ namespace Opm {
std::vector<double>& B_avg) const
{
const int np = numPhases();
const int numComp = numComponents();
const auto& grid = ebosSimulator.gridManager().grid();
const auto& gridView = grid.leafGridView();