LgrOutputHelpers.hpp File Reference
#include <opm/grid/CpGrid.hpp>
#include <opm/grid/cpgrid/LevelCartesianIndexMapper.hpp>
#include <opm/input/eclipse/Units/UnitSystem.hpp>
#include <opm/output/data/Cells.hpp>
#include <opm/output/data/Solution.hpp>
#include <opm/output/eclipse/RestartValue.hpp>
#include <algorithm>
#include <cstddef>
#include <utility>
#include <type_traits>
#include <vector>
Include dependency graph for LgrOutputHelpers.hpp:

Go to the source code of this file.

Classes

struct  MinChildrenData< ScalarType >
 
struct  MaxChildrenData< ScalarType >
 
struct  AverageChildrenData< ScalarType >
 

Namespaces

namespace  Opm
 Holds the implementation of the CpGrid as a pimple.
 
namespace  Opm::Lgr
 

Functions

std::vector< int > Opm::Lgr::mapLevelIndicesToCartesianOutputOrder (const Dune::CpGrid &grid, const Opm::LevelCartesianIndexMapper< Dune::CpGrid > &levelCartMapp, int level)
 Builds a mapping from level element indices to the Cartesian ordering required by output files. More...
 
template<typename Container >
Container Opm::Lgr::reorderForOutput (const Container &simulatorContainer, const std::vector< int > &toOutput)
 Reorder data from a simulation container into the order assumed by output for refined level grids. More...
 
template<typename ScalarType >
ScalarType Opm::Lgr::processChildrenData (const std::vector< std::vector< ScalarType > > &levelVectors, const Dune::cpgrid::Entity< 0 > &element, const Dune::CpGrid &grid)
 
template<typename ScalarType >
void Opm::Lgr::populateDataVectorLevelGrids (const Dune::CpGrid &grid, int maxLevel, const std::vector< ScalarType > &leafVector, const std::vector< std::vector< int > > &toOutput_refinedLevels, std::vector< std::vector< ScalarType > > &levelVectors)
 Populate level data vectors based on leaf vector, for a specific named data field. More...
 
void Opm::Lgr::extractSolutionLevelGrids (const Dune::CpGrid &grid, const std::vector< std::vector< int > > &toOutput_refinedLevels, const Opm::data::Solution &leafSolution, std::vector< Opm::data::Solution > &)
 Extracts and organizes solution data for all grid refinement levels. More...
 
template<typename Grid >
void Opm::Lgr::extractRestartValueLevelGrids (const Grid &grid, const Opm::RestartValue &leafRestartValue, std::vector< Opm::RestartValue > &restartValue_levels)
 Constructs restart-value containers for all grid refinement levels. More...