mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #776 from qilicun/debug-polymer
fix polymer in flow bug.
This commit is contained in:
commit
5581771917
@ -72,12 +72,14 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
ScheduleConstPtr schedule = eclipseState->getSchedule();
|
ScheduleConstPtr schedule = eclipseState->getSchedule();
|
||||||
for (const auto& well : schedule->getWells(currentStep)) {
|
for (const auto& well : schedule->getWells(currentStep)) {
|
||||||
WellInjectionProperties injection = well->getInjectionProperties(currentStep);
|
if (well->isInjector(currentStep)) {
|
||||||
if (injection.injectorType == WellInjector::WATER) {
|
WellInjectionProperties injection = well->getInjectionProperties(currentStep);
|
||||||
WellPolymerProperties polymer = well->getPolymerProperties(currentStep);
|
if (injection.injectorType == WellInjector::WATER) {
|
||||||
wellPolymerRate_.insert(std::make_pair(well->name(), polymer.m_polymerConcentration));
|
WellPolymerProperties polymer = well->getPolymerProperties(currentStep);
|
||||||
} else {
|
wellPolymerRate_.insert(std::make_pair(well->name(), polymer.m_polymerConcentration));
|
||||||
OPM_THROW(std::logic_error, "For polymer injector you must have a water injector");
|
} else {
|
||||||
|
OPM_THROW(std::logic_error, "For polymer injector you must have a water injector");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user