Merge pull request #4091 from akva2/janitoring

Some janitoring
This commit is contained in:
Bård Skaflestad 2022-09-09 09:42:53 +02:00 committed by GitHub
commit dbb2ba5cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 11 deletions

View File

@ -41,7 +41,7 @@ class State;
class BlackoilWellModelGeneric;
class EclipseState;
class Schedule;
class SimulatorUpdate;
struct SimulatorUpdate;
class SummaryState;
//! \brief Class handling Action support in simulator

View File

@ -27,7 +27,7 @@
namespace Opm
{
class FlowLinearSolverParameters;
struct FlowLinearSolverParameters;
PropertyTree setupPropertyTree(FlowLinearSolverParameters p,
bool LinearSolverMaxIterSet,

View File

@ -148,11 +148,6 @@ void WellState::init(const std::vector<double>& cellPressures,
const auto& pu = this->phaseUsage();
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();
for (const auto& ecl_well : wells_ecl) {

View File

@ -134,12 +134,10 @@ std::shared_ptr<MyMatrix> create1DLaplacian(I& indexset, int N, int start, int e
continue;
}
double dval=0;
if(row>0)
{
mm->colIndex[nnz]=localRow-1;
mm->data[nnz++]=-1;
dval+=1;
}
mm->colIndex[nnz]=localRow;
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->data[nnz++]=-1;
dval+=1;
}
mm->rowStart[localRow+1]=nnz;
indexset.add(row, LocalIndex(localRow, GridAttributes::owner, true));

View File

@ -43,7 +43,6 @@ BOOST_AUTO_TEST_CASE(Invert4x4)
{
typedef Dune::FieldMatrix<double, 4, 4> BaseType;
BaseType matrix;
BaseType eye;
BaseType inverse;
for (int i = 0; i < 4; ++i) {