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:
Bård Skaflestad 2014-08-29 12:18:59 +02:00
parent 8766e6468c
commit c0da69925e

View File

@ -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());