From 684da9aa8405a8f5bdcfb8347060f00d3e24e2aa Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Mon, 16 Feb 2015 11:52:50 +0100 Subject: [PATCH] Throw an excpetion if either eclipse or matlab output is activated. --- examples/sim_fibo_ad_cp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/sim_fibo_ad_cp.cpp b/examples/sim_fibo_ad_cp.cpp index 48f77f873..6c8d60ca3 100644 --- a/examples/sim_fibo_ad_cp.cpp +++ b/examples/sim_fibo_ad_cp.cpp @@ -216,9 +216,11 @@ try bool must_distribute = ( grid->comm().size()>=1 ); 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(); Dune::CpGrid global_grid = *grid;