mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: hack around opm-parser's shitty default handling once more
*arg*
This commit is contained in:
parent
a128ee223a
commit
a28affc2cf
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user