SimulatorFullyImplicitBlackoil: only access output parameters when output is enabled.

This commit is contained in:
Robert K 2015-01-15 13:31:28 +01:00
parent 7fd9895a12
commit e577b3b2d9

View File

@ -243,10 +243,10 @@ namespace Opm
const std::vector<double>& threshold_pressures_by_face)
: param_(param),
output_( param.getDefault("output", true) ),
output_vtk_(param.getDefault("output_vtk",true) ),
output_matlab_(param.getDefault("output_matlab", true)),
output_dir_(param.getDefault("output_dir", std::string("output"))),
output_interval_(param.getDefault("output_interval", 1)),
output_vtk_( output_ ? param.getDefault("output_vtk",true) : false ),
output_matlab_( output_ ? param.getDefault("output_matlab", true) : false ),
output_dir_( output_ ? param.getDefault("output_dir", std::string("output")) : "" ),
output_interval_( output_ ? param.getDefault("output_interval", 1): 0 ),
grid_(grid),
props_(props),
rock_comp_props_(rock_comp_props),