mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-16 15:41:56 -06:00
Add boolean flag to determine whether crossflow is allowed in a well
This PR adds allow_cf to the wells structure that determine whether crossflow is allowed or not. An extra argument is added to addWell(..) to specify the allow_cf flag.
This commit is contained in:
parent
430b96b815
commit
d83cb9e61f
@ -319,8 +319,9 @@ try
|
|||||||
const double well_index = 1;
|
const double well_index = 1;
|
||||||
std::stringstream well_name;
|
std::stringstream well_name;
|
||||||
well_name << "well" << i;
|
well_name << "well" << i;
|
||||||
|
bool allowCrossFlow = true;
|
||||||
add_well(PRODUCER, 0, 1, NULL, &well_cells, &well_index,
|
add_well(PRODUCER, 0, 1, NULL, &well_cells, &well_index,
|
||||||
well_name.str().c_str(), wells);
|
well_name.str().c_str(), allowCrossFlow, wells);
|
||||||
}
|
}
|
||||||
/// \internal[well cells]
|
/// \internal[well cells]
|
||||||
/// \endinternal
|
/// \endinternal
|
||||||
|
Loading…
Reference in New Issue
Block a user