Warn about broken parallel matlab output.

If this is a parallel run and matlab output is requested then
we issue a warning that it is broken because of wrong velocities.
This commit is contained in:
Markus Blatt 2016-11-16 12:24:09 +01:00
parent b91f747a3e
commit 5ad813b4bd

View File

@ -344,9 +344,17 @@ namespace Opm
.reset(new BlackoilVTKWriter< Grid >( grid, outputDir_ )); .reset(new BlackoilVTKWriter< Grid >( grid, outputDir_ ));
} }
auto output_matlab = param.getDefault("output_matlab", false );
if ( parallelOutput_->isParallel() && output_matlab )
{
Opm::OpmLog::warning("Parallel Output Config",
"Velocity output for matlab is broken in parallel.");
}
if( parallelOutput_->isIORank() ) { if( parallelOutput_->isIORank() ) {
if ( param.getDefault("output_matlab", false ) ) if ( output_matlab )
{ {
matlabWriter_ matlabWriter_
.reset(new BlackoilMatlabWriter< Grid >( grid, outputDir_ )); .reset(new BlackoilMatlabWriter< Grid >( grid, outputDir_ ));
@ -824,7 +832,7 @@ namespace Opm
if ( no_kw ) if ( no_kw )
{ {
Opm::OpmLog::warning("Unhandled output request in parallel", str.str()); Opm::OpmLog::warning("Unhandled ouput request", str.str());
} }
} }
} }