mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclTransmissibility: reduce division-by-zero cutoff to 10^-30
transmissibilities of 10^-20 can occur in real decks. (i.e., Norne; although the face which belongs to the transmissibility is tiny it nonetheless affects convergence for some reason.)
This commit is contained in:
parent
64a2c9df51
commit
22ecf54d41
@ -206,7 +206,7 @@ public:
|
|||||||
// convert half transmissibilities to full face
|
// convert half transmissibilities to full face
|
||||||
// transmissibilities using the harmonic mean
|
// transmissibilities using the harmonic mean
|
||||||
Scalar trans;
|
Scalar trans;
|
||||||
if (std::abs(halfTrans1) < 1e-20 || std::abs(halfTrans2) < 1e-20)
|
if (std::abs(halfTrans1) < 1e-30 || std::abs(halfTrans2) < 1e-30)
|
||||||
// avoid division by zero
|
// avoid division by zero
|
||||||
trans = 0.0;
|
trans = 0.0;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user