Check that UDQ value is numeric before comparing with zero
This commit is contained in:
parent
604cbef5dc
commit
de51e3e3a4
@ -176,7 +176,7 @@ void Well::WellProductionProperties::handleWCONPROD(const std::optional<VFPProdT
|
|||||||
if( !record.getItem( cmode.first ).defaultApplied( 0 ) ) {
|
if( !record.getItem( cmode.first ).defaultApplied( 0 ) ) {
|
||||||
|
|
||||||
// a zero value THP limit will not be handled as a THP limit
|
// a zero value THP limit will not be handled as a THP limit
|
||||||
if (cmode.first == "THP" && this->THPTarget.zero())
|
if (cmode.first == "THP" && this->THPTarget.is<double>() && this->THPTarget.zero())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
this->addProductionControl( cmode.second );
|
this->addProductionControl( cmode.second );
|
||||||
|
Loading…
Reference in New Issue
Block a user