Merge pull request #343 from atgeirr/fix-flow-cp

Bugfix: distribute only if comm size is strictly > 1.
This commit is contained in:
Atgeirr Flø Rasmussen 2015-04-08 10:18:30 +02:00
commit 72ec98f94b

View File

@ -246,7 +246,7 @@ try
// At this point all properties and state variables are correctly initialized
// If there are more than one processors involved, we now repartition the grid
// 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( param.getDefault("output_matlab", false) || param.getDefault("output_ecl", true) )