mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-18 21:22:57 -06:00
createWellsFromSpecs: Assert three space dimensions
Method WellsManager::createWellsFromSpecs() is only supported in three space dimensions. Assert that we don't use anything else.
This commit is contained in:
parent
8766e6468c
commit
c0da69925e
@ -112,6 +112,12 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
|
||||
const std::map<int,int>& cartesian_to_compressed,
|
||||
const double* permeability)
|
||||
{
|
||||
if (dimensions != 3) {
|
||||
OPM_THROW(std::domain_error,
|
||||
"WellsManager::createWellsFromSpecs() only "
|
||||
"supported in three space dimensions");
|
||||
}
|
||||
|
||||
std::vector<std::vector<PerfData> > wellperf_data;
|
||||
wellperf_data.resize(wells.size());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user