ebos: hack around opm-parser's shitty default handling once more

*arg*
This commit is contained in:
Andreas Lauser 2015-02-12 12:09:46 +01:00
parent a128ee223a
commit a28affc2cf

View File

@ -737,9 +737,9 @@ protected:
// overwrite the automatically computed connection // overwrite the automatically computed connection
// transmissibilty factor by the one specified in the deck. // transmissibilty factor by the one specified in the deck.
Scalar ctf = completion->getConnectionTransmissibilityFactor(); const auto& ctf = completion->getConnectionTransmissibilityFactorAsValueObject();
if (std::isfinite(ctf) && ctf > 0.0) if (ctf.hasValue() && ctf.getValue() > 0.0)
eclWell->setConnectionTransmissibilityFactor(elemCtx, dofIdx, ctf); eclWell->setConnectionTransmissibilityFactor(elemCtx, dofIdx, ctf.getValue());
} }
} }
} }