mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
- change FieldMatrix to MatrixBlock in Tracer model to not need extra initializations in linear solver
This commit is contained in:
committed by
Atgeirr Flø Rasmussen
parent
a0f16089f7
commit
98acda0977
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user