INIT: Don't Write Empty TRANNC Vector
This commit makes the TRANNC INIT file output conditional on the vector being non-empty. Previously we would alway output that vector even if it did not contain any non-neighbouring connections.
This commit is contained in:
@@ -619,7 +619,7 @@ void Opm::InitIO::write(const ::Opm::EclipseState& es,
|
||||
|
||||
writeSatFuncScaling(es, grid, units, initFile);
|
||||
|
||||
if (true || (nnc.numNNC() > std::size_t{0})) {
|
||||
if (nnc.numNNC() > std::size_t{0}) {
|
||||
writeNonNeighbourConnections(nnc, units, initFile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user