Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions opm/simulators/flow/EclGenericWriter_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,18 @@ extractOutputTransAndNNC(const std::function<unsigned int(unsigned int)>& 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<Opm::data::Solution> outputTrans_levels{}; // TRANS* between cells from same level grid
std::vector<Opm::data::Solution> 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
Expand Down