Merge pull request #813 from iLoop2/Add_WPIMULT

Add WPIMULT keyword support
This commit is contained in:
Atgeirr Flø Rasmussen 2015-06-16 14:50:55 +02:00
commit 80dd0ef570
2 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -41,3 +41,6 @@ install_manifest.txt
CTestTestfile.cmake
DartConfiguration.tcl
Testing/
.DS_Store
.idea
build

View File

@ -170,7 +170,7 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
pd.cell = cell;
{
const Value<double>& transmissibilityFactor = completion->getConnectionTransmissibilityFactorAsValueObject();
const double wellPi = completion ->getWellPi();
if (transmissibilityFactor.hasValue()) {
pd.well_index = transmissibilityFactor.getValue();
} else {
@ -190,6 +190,7 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
completion->getDirection(),
ntg[cell]);
}
pd.well_index *= wellPi;
}
wellperf_data[well_index].push_back(pd);
}