mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
- change FieldMatrix to MatrixBlock in Tracer model to not need extra initializations in linear solver
This commit is contained in:
1 parent
a0f16089f7
commit
98acda0977
2 files changed
+1
-2
No files matched your search
@@ -48,7 +48,7 @@ class EclipseState;
|
|||||||
template<class Grid, class GridView, class DofMapper, class Stencil, class Scalar>
|
template<class Grid, class GridView, class DofMapper, class Stencil, class Scalar>
|
||||||
class EclGenericTracerModel {
|
class EclGenericTracerModel {
|
||||||
public:
|
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 TracerVector = Dune::BlockVector<Dune::FieldVector<Scalar,1>>;
|
||||||
using CartesianIndexMapper = Dune::CartesianIndexMapper<Grid>;
|
using CartesianIndexMapper = Dune::CartesianIndexMapper<Grid>;
|
||||||
static const int dimWorld = Grid::dimensionworld;
|
static const int dimWorld = Grid::dimensionworld;
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ namespace Opm
|
|||||||
const IndexSet& indset = comm.indexSet();
|
const IndexSet& indset = comm.indexSet();
|
||||||
IndexSet& indset_rw = commRW->indexSet();
|
IndexSet& indset_rw = commRW->indexSet();
|
||||||
const int max_nw = comm.communicator().max(nw);
|
const int max_nw = comm.communicator().max(nw);
|
||||||
const int num_proc = comm.communicator().size();
|
|
||||||
const int rank = comm.communicator().rank();
|
const int rank = comm.communicator().rank();
|
||||||
int glo_max = 0;
|
int glo_max = 0;
|
||||||
size_t loc_max = 0;
|
size_t loc_max = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user