- change FieldMatrix to MatrixBlock in Tracer model to not need extra initializations in linear solver

This commit is contained in:
hnil
2022-06-02 15:12:18 +02:00
committed by Atgeirr Flø Rasmussen
parent a0f16089f7
commit 98acda0977
2 changed files with 1 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ class EclipseState;
template<class Grid, class GridView, class DofMapper, class Stencil, class Scalar>
class EclGenericTracerModel {
public:
using TracerMatrix = Dune::BCRSMatrix<Dune::FieldMatrix<Scalar, 1, 1>>;
using TracerMatrix = Dune::BCRSMatrix<Opm::MatrixBlock<Scalar, 1, 1>>;
using TracerVector = Dune::BlockVector<Dune::FieldVector<Scalar,1>>;
using CartesianIndexMapper = Dune::CartesianIndexMapper<Grid>;
static const int dimWorld = Grid::dimensionworld;

View File

@@ -36,7 +36,6 @@ namespace Opm
const IndexSet& indset = comm.indexSet();
IndexSet& indset_rw = commRW->indexSet();
const int max_nw = comm.communicator().max(nw);
const int num_proc = comm.communicator().size();
const int rank = comm.communicator().rank();
int glo_max = 0;
size_t loc_max = 0;