mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[bugfix] Use correct parameters for ParallelIstlInformation::copyValuesTo.
The last parameter of this functions specifies how vector/martix entries there are per index/cell of the grid. For the interleaved versions all components end up in one block. Therefore this number needs to be one here (in contrast to the number of phases for the non-interleaved version). This commit new uses the correct number.
This commit is contained in:
parent
0adde744bf
commit
45fdb3ac48
@ -153,8 +153,10 @@ namespace Opm
|
||||
const ParallelISTLInformation& info =
|
||||
boost::any_cast<const ParallelISTLInformation&>( parallelInformation_);
|
||||
Comm istlComm(info.communicator());
|
||||
// As we use a dune-istl with block size np the number of components
|
||||
// per parallel is only one.
|
||||
info.copyValuesTo(istlComm.indexSet(), istlComm.remoteIndices(),
|
||||
size, np);
|
||||
size, 1);
|
||||
// Construct operator, scalar product and vectors needed.
|
||||
typedef Dune::OverlappingSchwarzOperator<Mat,Vector,Vector,Comm> Operator;
|
||||
Operator opA(istlA, istlComm);
|
||||
|
Loading…
Reference in New Issue
Block a user