diff --git a/opm/simulators/flow/EclGenericWriter_impl.hpp b/opm/simulators/flow/EclGenericWriter_impl.hpp index d6d1151534a..9a0f3b0bd87 100644 --- a/opm/simulators/flow/EclGenericWriter_impl.hpp +++ b/opm/simulators/flow/EclGenericWriter_impl.hpp @@ -285,6 +285,18 @@ extractOutputTransAndNNC(const std::function& map) auto cartMap = cartesianToCompressed(equilGrid_->size(0), UgGridHelpers::globalCell(*equilGrid_)); computeTrans_(cartMap, map); exportNncStructure_(cartMap, map); + + // if Grid is CpGrid with LGRs, and it's a serial run + std::vector outputTrans_levels{}; // TRANS* between cells from same level grid + std::vector outputTransDiff_levels{}; // TRANS* between cells from different level grids + + if ( (this->eclState_.getLgrs().size()>0) && (this->grid_.maxLevel()>0) ) { + Opm::Lgr::extractTransLevelGrids(this->grid_, + this->globalTrans(), + outputTrans_levels, + outputTransDiff_levels, + directVerticalNeighbors); + } } #if HAVE_MPI