mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
createWellsFromSpecs: Use ref-to-const cart2active
This commit tightens the function header of method
WellsManager::createWellsFromSpecs()
to accept a reference-to-const 'cartesian_to_compressed' map. It
used to be a complete, copy-constructed object, so this is a slight
performance enhancement as we no longer need to copy a (somewhat)
large object on every call to the method.
This commit is contained in:
@@ -109,7 +109,7 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
|
||||
std::vector<WellData>& well_data,
|
||||
std::map<std::string, int>& well_names_to_index,
|
||||
const PhaseUsage& phaseUsage,
|
||||
std::map<int,int> cartesian_to_compressed,
|
||||
const std::map<int,int>& cartesian_to_compressed,
|
||||
const double* permeability)
|
||||
{
|
||||
std::vector<std::vector<PerfData> > wellperf_data;
|
||||
|
||||
Reference in New Issue
Block a user