mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
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:
parent
b91f747a3e
commit
5ad813b4bd
@ -344,9 +344,17 @@ namespace Opm
|
||||
.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 ( param.getDefault("output_matlab", false ) )
|
||||
if ( output_matlab )
|
||||
{
|
||||
matlabWriter_
|
||||
.reset(new BlackoilMatlabWriter< Grid >( grid, outputDir_ ));
|
||||
@ -824,7 +832,7 @@ namespace Opm
|
||||
|
||||
if ( no_kw )
|
||||
{
|
||||
Opm::OpmLog::warning("Unhandled output request in parallel", str.str());
|
||||
Opm::OpmLog::warning("Unhandled ouput request", str.str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user