correction to SWEL for prediction mode wells

This commit is contained in:
Jostein Alvestad 2021-05-09 21:55:08 +02:00
parent 777de0673f
commit 26cc7897c6
3 changed files with 3 additions and 10 deletions

View File

@ -40,7 +40,6 @@ namespace Opm {
explicit Regdims(const Deck& deck);
#if 0
Regdims(size_t ntfip , size_t nmfipr , size_t nrfregr , size_t ntfreg , size_t nplmix) :
m_NTFIP( ntfip ),
m_NMFIPR( nmfipr ),
@ -48,7 +47,6 @@ namespace Opm {
m_NTFREG( ntfreg ),
m_NPLMIX( nplmix )
{}
#endif
static Regdims serializeObject()
{

View File

@ -613,11 +613,6 @@ namespace {
sWell[Ix::ResVRateTarget] = getRateLimit(units, M::rate, pc.resv_rate);
//}
}
if ((well.getStatus() == Opm::Well::Status::SHUT)) {
sWell[Ix::OilRateTarget] = 0.;
sWell[Ix::WatRateTarget] = 0.;
sWell[Ix::GasRateTarget] = 0.;
}
}
else if (well.isInjector()) {
const auto& ic = well.injectionControls(smry);

View File

@ -760,9 +760,9 @@ BOOST_AUTO_TEST_CASE (Declared_Well_Data)
const auto i1 = 4*ih_8.nswelz;
const auto& swell = awd.getSWell();
BOOST_CHECK_CLOSE(swell[i1 + Ix::OilRateTarget], 0.0f, 1.0e-7f);
BOOST_CHECK_CLOSE(swell[i1 + Ix::WatRateTarget], 0.0f, 1.0e-7f);
BOOST_CHECK_CLOSE(swell[i1 + Ix::GasRateTarget], 0.0f, 1.0e-7f);
BOOST_CHECK_CLOSE(swell[i1 + Ix::OilRateTarget], 20000.0f, 1.0e-7f);
BOOST_CHECK_CLOSE(swell[i1 + Ix::WatRateTarget], 1.0e+20f, 1.0e-7f);
BOOST_CHECK_CLOSE(swell[i1 + Ix::GasRateTarget], 1.0e+20f, 1.0e-7f);
const auto i2 = 5*ih_8.nswelz;