mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1249 from GitPaean/fixing_vfp_flow_ebos
Fixing vfp related running with flow_ebos
This commit is contained in:
commit
4ca5260545
@ -181,6 +181,7 @@ namespace Opm {
|
||||
wellModel().setWellsActive( wellsActive );
|
||||
// compute global sum of number of cells
|
||||
global_nc_ = detail::countGlobalCells(grid_);
|
||||
wellModel().setVFPProperties(&vfp_properties_);
|
||||
if (!istlSolver_)
|
||||
{
|
||||
OPM_THROW(std::logic_error,"solver down cast to ISTLSolver failed");
|
||||
|
@ -435,7 +435,6 @@ protected:
|
||||
|
||||
well_model.init(phaseUsage,
|
||||
activePhases,
|
||||
/*vfpProperties=*/nullptr,
|
||||
gravity,
|
||||
legacyDepth_,
|
||||
legacyPoreVolume_,
|
||||
|
@ -118,7 +118,6 @@ enum WellVariablePositions {
|
||||
|
||||
void init(const PhaseUsage phase_usage_arg,
|
||||
const std::vector<bool>& active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
const std::vector<double>& depth_arg,
|
||||
const std::vector<double>& pv_arg,
|
||||
@ -126,6 +125,7 @@ enum WellVariablePositions {
|
||||
long int global_nc,
|
||||
const Grid& grid);
|
||||
|
||||
void setVFPProperties(const VFPProperties* vfp_properties_arg);
|
||||
|
||||
/// The number of components in the model.
|
||||
int numComponents() const
|
||||
|
@ -43,7 +43,6 @@ namespace Opm {
|
||||
StandardWellsDense<TypeTag>::
|
||||
init(const PhaseUsage phase_usage_arg,
|
||||
const std::vector<bool>& active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
const std::vector<double>& depth_arg,
|
||||
const std::vector<double>& pv_arg,
|
||||
@ -60,7 +59,6 @@ namespace Opm {
|
||||
|
||||
phase_usage_ = phase_usage_arg;
|
||||
active_ = active_arg;
|
||||
vfp_properties_ = vfp_properties_arg;
|
||||
gravity_ = gravity_arg;
|
||||
cell_depths_ = extractPerfData(depth_arg);
|
||||
pv_ = pv_arg;
|
||||
@ -132,6 +130,19 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template<typename TypeTag>
|
||||
void
|
||||
StandardWellsDense<TypeTag>::
|
||||
setVFPProperties(const VFPProperties* vfp_properties_arg)
|
||||
{
|
||||
vfp_properties_ = vfp_properties_arg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
template<typename TypeTag>
|
||||
SimulatorReport
|
||||
StandardWellsDense<TypeTag>::
|
||||
|
Loading…
Reference in New Issue
Block a user