BlackoilModelParameters: add the file name of the deck

this is needed by the ebos based model.
This commit is contained in:
Andreas Lauser 2016-07-12 17:53:38 +02:00
parent 4a66b4495b
commit 4d63a4b0ba
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,7 @@ namespace Opm
update_equations_scaling_ = param.getDefault("update_equations_scaling", update_equations_scaling_);
compute_well_potentials_ = param.getDefault("compute_well_potentials", compute_well_potentials_);
use_update_stabilization_ = param.getDefault("use_update_stabilization", use_update_stabilization_);
deck_file_name_ = param.template get<std::string>("deck_filename");
}

View File

@ -20,6 +20,8 @@
#ifndef OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED
#define OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED
#include <string>
namespace Opm
{
@ -56,6 +58,9 @@ namespace Opm
/// Try to detect oscillation or stagnation.
bool use_update_stabilization_;
// The file name of the deck
std::string deck_file_name_;
/// Construct from user parameters or defaults.
explicit BlackoilModelParameters( const parameter::ParameterGroup& param );