mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 13:29:08 -06:00
remove unused variables
This commit is contained in:
parent
58b0121e9b
commit
c68d979d4b
@ -148,11 +148,6 @@ void WellState::init(const std::vector<double>& cellPressures,
|
|||||||
const auto& pu = this->phaseUsage();
|
const auto& pu = this->phaseUsage();
|
||||||
const int np = pu.num_phases;
|
const int np = pu.num_phases;
|
||||||
|
|
||||||
int nperf = 0;
|
|
||||||
for (const auto& wpd : well_perf_data) {
|
|
||||||
nperf += wpd.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
const auto& wg_events = schedule[report_step].wellgroup_events();
|
const auto& wg_events = schedule[report_step].wellgroup_events();
|
||||||
for (const auto& ecl_well : wells_ecl) {
|
for (const auto& ecl_well : wells_ecl) {
|
||||||
|
@ -134,12 +134,10 @@ std::shared_ptr<MyMatrix> create1DLaplacian(I& indexset, int N, int start, int e
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
double dval=0;
|
|
||||||
if(row>0)
|
if(row>0)
|
||||||
{
|
{
|
||||||
mm->colIndex[nnz]=localRow-1;
|
mm->colIndex[nnz]=localRow-1;
|
||||||
mm->data[nnz++]=-1;
|
mm->data[nnz++]=-1;
|
||||||
dval+=1;
|
|
||||||
}
|
}
|
||||||
mm->colIndex[nnz]=localRow;
|
mm->colIndex[nnz]=localRow;
|
||||||
mm->data[nnz++]=2;//dval+(row<N-1);
|
mm->data[nnz++]=2;//dval+(row<N-1);
|
||||||
@ -147,7 +145,6 @@ std::shared_ptr<MyMatrix> create1DLaplacian(I& indexset, int N, int start, int e
|
|||||||
{
|
{
|
||||||
mm->colIndex[nnz]=localRow+1;
|
mm->colIndex[nnz]=localRow+1;
|
||||||
mm->data[nnz++]=-1;
|
mm->data[nnz++]=-1;
|
||||||
dval+=1;
|
|
||||||
}
|
}
|
||||||
mm->rowStart[localRow+1]=nnz;
|
mm->rowStart[localRow+1]=nnz;
|
||||||
indexset.add(row, LocalIndex(localRow, GridAttributes::owner, true));
|
indexset.add(row, LocalIndex(localRow, GridAttributes::owner, true));
|
||||||
|
@ -43,7 +43,6 @@ BOOST_AUTO_TEST_CASE(Invert4x4)
|
|||||||
{
|
{
|
||||||
typedef Dune::FieldMatrix<double, 4, 4> BaseType;
|
typedef Dune::FieldMatrix<double, 4, 4> BaseType;
|
||||||
BaseType matrix;
|
BaseType matrix;
|
||||||
BaseType eye;
|
|
||||||
BaseType inverse;
|
BaseType inverse;
|
||||||
|
|
||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user