mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #343 from atgeirr/fix-flow-cp
Bugfix: distribute only if comm size is strictly > 1.
This commit is contained in:
commit
72ec98f94b
@ -246,7 +246,7 @@ try
|
|||||||
// At this point all properties and state variables are correctly initialized
|
// At this point all properties and state variables are correctly initialized
|
||||||
// If there are more than one processors involved, we now repartition the grid
|
// If there are more than one processors involved, we now repartition the grid
|
||||||
// and initilialize new properties and states for it.
|
// and initilialize new properties and states for it.
|
||||||
bool must_distribute = ( grid->comm().size()>=1 );
|
bool must_distribute = ( grid->comm().size() > 1 );
|
||||||
if( must_distribute )
|
if( must_distribute )
|
||||||
{
|
{
|
||||||
if( param.getDefault("output_matlab", false) || param.getDefault("output_ecl", true) )
|
if( param.getDefault("output_matlab", false) || param.getDefault("output_ecl", true) )
|
||||||
|
Loading…
Reference in New Issue
Block a user