mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user