mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #698 from blattms/prevent-dereferencing-null-point-during-paralle-IO
Prevent dereferencing a null pointer during parallel output.
This commit is contained in:
commit
decdd3185f
@ -269,6 +269,9 @@ namespace Opm
|
||||
}
|
||||
else // all other simply send to the I/O rank
|
||||
{
|
||||
// globalReservoirState will be deferenced even if this rank is not outputting anything
|
||||
// To prevent dereferencing a nullptr we create an empty container
|
||||
globalReservoirState_.reset( new SimulationDataContainer( 0, 0, 0));
|
||||
send.insert( ioRank );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user