mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-26 03:00:17 -06:00
Add support for storing well names in "Wells" structure.
The well name must be passed as a parameter to add_well(), so update callers accordingly.
This commit is contained in:
parent
b1baed3ead
commit
23ae68968f
@ -263,7 +263,10 @@ int main ()
|
||||
for (int i = 0; i < num_wells; ++i) {
|
||||
const int well_cells = i*nx;
|
||||
const double well_index = 1;
|
||||
add_well(PRODUCER, 0, 1, NULL, &well_cells, &well_index, wells);
|
||||
std::stringstream well_name;
|
||||
well_name << "well" << i;
|
||||
add_well(PRODUCER, 0, 1, NULL, &well_cells, &well_index,
|
||||
well_name.str().c_str(), wells);
|
||||
}
|
||||
/// \endcode
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user