mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -06:00
Throw an excpetion if either eclipse or matlab output is activated.
This commit is contained in:
parent
3eb13e74dd
commit
684da9aa84
@ -216,9 +216,11 @@ try
|
|||||||
bool must_distribute = ( grid->comm().size()>=1 );
|
bool must_distribute = ( grid->comm().size()>=1 );
|
||||||
if( must_distribute )
|
if( must_distribute )
|
||||||
{
|
{
|
||||||
if(!param.getDefault("output_vtk", true))
|
if( param.getDefault("output_matlab", false) || param.getDefault("output_ecl", true) )
|
||||||
{
|
{
|
||||||
OPM_THROW(std::logic_error, "We only support vtk output during parallel runs");
|
OPM_THROW(std::logic_error, "We only support vtk output during parallel runs. "
|
||||||
|
<<"Please use \"output_matlab=false output_ecl=false\" to deactivate the "
|
||||||
|
<<"other outputs!");
|
||||||
}
|
}
|
||||||
grid->loadBalance();
|
grid->loadBalance();
|
||||||
Dune::CpGrid global_grid = *grid;
|
Dune::CpGrid global_grid = *grid;
|
||||||
|
Loading…
Reference in New Issue
Block a user