mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[bugfix] Correctl resize satOilMax in a parallel run.
Previously, we tried to make an empty container bigger by resizing it with its current size. Of course this is wrong and does not change anything. With this commit we use the size of another container which already has the correct size.
This commit is contained in:
parent
13262f6d28
commit
ff669bc32b
@ -245,9 +245,10 @@ public:
|
||||
size_(1)
|
||||
{
|
||||
// satOilMax might be non empty. In this case we will need to send it, too.
|
||||
// It has to have the same size as the cellPvtRegionIdx_
|
||||
if ( sendProps.satOilMax_.size()>0 )
|
||||
{
|
||||
recvProps_.satOilMax_.resize(recvProps_.satOilMax_.size(),
|
||||
recvProps_.satOilMax_.resize(recvProps_.cellPvtRegionIdx_.size(),
|
||||
-std::numeric_limits<double>::max());
|
||||
++size_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user