Only try to merge files from a parallel run if ouptput requested.

If it is not requested then output_dir is not created and boost
will throw an exception if we try to read from a non existing
directory.
This commit is contained in:
Markus Blatt
2017-01-09 12:07:27 +01:00
parent 86b71e7d48
commit 0a904deb02
2 changed files with 2 additions and 2 deletions

View File

@@ -465,7 +465,7 @@ namespace Opm
// force closing of all log files.
OpmLog::removeAllBackends();
if( mpi_rank_ != 0 || !must_distribute_ )
if( mpi_rank_ != 0 || !must_distribute_ || !output_to_files_ )
{
return;
}

View File

@@ -315,7 +315,7 @@ namespace Opm
// force closing of all log files.
OpmLog::removeAllBackends();
if( mpi_rank_ != 0 || !must_distribute_ )
if( mpi_rank_ != 0 || !must_distribute_ || !output_to_files_ )
{
return;
}