Implement correct ignore thresholds for NNC with/without EDITNNC.

It seems like eclipse ignores NNCs with small transmissibility.
Small means less than 1e-6 for Eclipse (Even if it says that it
is ignoring values below 1e-5 and/or zero values)!.
This commit now implements the same threshold during IO.

Also fixes a bug when applying EDITNNC, it needs to have cell1<=cell2 to work.
This commit is contained in:
Markus Blatt
2019-04-26 21:14:44 +02:00
committed by Arne Morten Kvarving
parent 7849ce690d
commit d2efdcfaa5
4 changed files with 84 additions and 18 deletions

View File

@@ -619,9 +619,7 @@ private:
if (!nnc.hasNNC())
return make_tuple(processedNnc, unprocessedNnc);
auto nncData = nnc.nncdata();
auto editnncData = vanguard_.eclState().getInputEDITNNC().data();
sortNncAndApplyEditnnc(nncData, editnncData);
auto nncData = sortNncAndApplyEditnnc(nnc.nncdata(), vanguard_.eclState().getInputEDITNNC().data());
for (const auto& nncEntry : nncData) {
auto c1 = nncEntry.cell1;