Commit 6a59d0f8 authored by Bernd Flemisch's avatar Bernd Flemisch Committed by Katharina Heck
Browse files

[cleanup] use local variables gridGeoemtry instead of fvGridGeometry

parent 57cdca8e
......@@ -66,14 +66,14 @@ public:
* - Adaptive.RefineAtSource If to refine where source terms are specified (default: true)
* - Adaptive.BCRefinementThreshold The threshold above which fluxes are treated as non-zero (default: 1e-10)
* \param problem The problem object
* \param fvGridGeometry The finite volume geometry of the grid
* \param gridGeometry The finite volume geometry of the grid
* \param gridVariables The secondary variables on the grid
*/
GridAdaptInitializationIndicator(std::shared_ptr<const Problem> problem,
std::shared_ptr<const GridGeometry> fvGridGeometry,
std::shared_ptr<const GridGeometry> gridGeometry,
std::shared_ptr<const GridVariables> gridVariables)
: problem_(problem)
, fvGridGeometry_(fvGridGeometry)
, fvGridGeometry_(gridGeometry)
, gridVariables_(gridVariables)
, minLevel_(getParamFromGroup<int>(problem->paramGroup(), "Adaptive.MinLevel"))
, maxLevel_(getParamFromGroup<int>(problem->paramGroup(), "Adaptive.MaxLevel"))
......
......@@ -170,13 +170,13 @@ public:
// get some aliases for convenience
const auto& element = this->element();
const auto& fvGeometry = this->fvGeometry();
const auto& fvGridGeometry = this->assembler().gridGeometry();
const auto& gridGeometry = this->assembler().gridGeometry();
auto&& curElemVolVars = this->curElemVolVars();
auto&& elemFluxVarsCache = this->elemFluxVarsCache();
// get stencil informations
const auto globalI = fvGridGeometry.elementMapper().index(element);
const auto& connectivityMap = fvGridGeometry.connectivityMap();
const auto globalI = gridGeometry.elementMapper().index(element);
const auto& connectivityMap = gridGeometry.connectivityMap();
const auto numNeighbors = connectivityMap[globalI].size();
// container to store the neighboring elements
......@@ -203,7 +203,7 @@ public:
unsigned int j = 1;
for (const auto& dataJ : connectivityMap[globalI])
{
neighborElements[j-1] = fvGridGeometry.element(dataJ.globalJ);
neighborElements[j-1] = gridGeometry.element(dataJ.globalJ);
for (const auto scvfIdx : dataJ.scvfsJ)
origResiduals[j] += evalNeighborFlux(neighborElements[j-1], fvGeometry.scvf(scvfIdx));
......@@ -221,7 +221,7 @@ public:
const auto origVolVars = curVolVars;
// element solution container to be deflected
auto elemSol = elementSolution(element, curSol, fvGridGeometry);
auto elemSol = elementSolution(element, curSol, gridGeometry);
// derivatives in the neighbors with repect to the current elements
// in index 0 we save the derivative of the element residual with respect to it's own dofs
......@@ -349,11 +349,11 @@ public:
// get some aliases for convenience
const auto& element = this->element();
const auto& fvGeometry = this->fvGeometry();
const auto& fvGridGeometry = this->assembler().gridGeometry();
const auto& gridGeometry = this->assembler().gridGeometry();
auto&& curElemVolVars = this->curElemVolVars();
// reference to the element's scv (needed later) and corresponding vol vars
const auto globalI = fvGridGeometry.elementMapper().index(element);
const auto globalI = gridGeometry.elementMapper().index(element);
const auto& scv = fvGeometry.scv(globalI);
auto& curVolVars = ParentType::getVolVarAccess(gridVariables.curGridVolVars(), curElemVolVars, scv);
......@@ -364,7 +364,7 @@ public:
const auto origVolVars = curVolVars;
// element solution container to be deflected
auto elemSol = elementSolution(element, curSol, fvGridGeometry);
auto elemSol = elementSolution(element, curSol, gridGeometry);
NumEqVector partialDeriv;
......
......@@ -88,18 +88,18 @@ public:
* \param problem The problem to solve
* \param element The DUNE Codim<0> entity for which the storage
* term ought to be calculated
* \param fvGridGeometry The finite-volume grid geometry
* \param gridGeometry The finite-volume grid geometry
* \param gridVariables The grid variables (volume and flux variables)
* \param sol The solution vector
*/
ElementResidualVector evalStorage(const Problem& problem,
const Element &element,
const GridGeometry& fvGridGeometry,
const GridGeometry& gridGeometry,
const GridVariables& gridVariables,
const SolutionVector& sol) const
{
// make sure FVElementGeometry and volume variables are bound to the element
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bind(element);
auto elemVolVars = localView(gridVariables.curGridVolVars());
......
......@@ -115,10 +115,10 @@ public:
const std::vector<Scalar>& distanceFromLastLinearization,
Scalar threshold)
{
const auto& fvGridGeometry = assembler.gridGeometry();
const auto& gridView = fvGridGeometry.gridView();
const auto& elementMapper = fvGridGeometry.elementMapper();
const auto& vertexMapper = fvGridGeometry.vertexMapper();
const auto& gridGeometry = assembler.gridGeometry();
const auto& gridView = gridGeometry.gridView();
const auto& elementMapper = gridGeometry.elementMapper();
const auto& vertexMapper = gridGeometry.vertexMapper();
// set all vertices to green
vertexColor_.assign(vertexColor_.size(), EntityColor::green);
......@@ -318,9 +318,9 @@ public:
const std::vector<Scalar>& distanceFromLastLinearization,
Scalar threshold)
{
const auto& fvGridGeometry = assembler.gridGeometry();
const auto& gridView = fvGridGeometry.gridView();
const auto& elementMapper = fvGridGeometry.elementMapper();
const auto& gridGeometry = assembler.gridGeometry();
const auto& gridView = gridGeometry.gridView();
const auto& elementMapper = gridGeometry.elementMapper();
// mark the red elements
for (const auto& element : elements(gridView))
......@@ -340,7 +340,7 @@ public:
}
// mark the neighbors also red
const auto& connectivityMap = fvGridGeometry.connectivityMap();
const auto& connectivityMap = gridGeometry.connectivityMap();
for (unsigned eIdx = 0; eIdx < elementColor_.size(); ++eIdx)
{
if (elementColor_[eIdx] == EntityColor::red)
......@@ -440,9 +440,9 @@ public:
: engine_(assembler)
, greenElems_(0)
{
const auto& fvGridGeometry = assembler.gridGeometry();
totalElems_ = fvGridGeometry.elementMapper().size();
totalElems_ = fvGridGeometry.gridView().comm().sum(totalElems_);
const auto& gridGeometry = assembler.gridGeometry();
totalElems_ = gridGeometry.elementMapper().size();
totalElems_ = gridGeometry.gridView().comm().sum(totalElems_);
}
/*!
......
......@@ -277,13 +277,13 @@ class BoundingBoxTreePointSourceHelper
public:
//! calculate a DOF index to point source map from given vector of point sources
template<class GridGeometry, class PointSource, class PointSourceMap>
static void computePointSourceMap(const GridGeometry& fvGridGeometry,
static void computePointSourceMap(const GridGeometry& gridGeometry,
std::vector<PointSource>& sources,
PointSourceMap& pointSourceMap)
{
constexpr bool isBox = GridGeometry::discMethod == DiscretizationMethod::box;
const auto& boundingBoxTree = fvGridGeometry.boundingBoxTree();
const auto& boundingBoxTree = gridGeometry.boundingBoxTree();
for (auto&& source : sources)
{
......@@ -298,7 +298,7 @@ public:
{
// check in which subcontrolvolume(s) we are
const auto element = boundingBoxTree.entitySet().entity(eIdx);
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bindElement(element);
const auto globalPos = source.position();
......
......@@ -73,11 +73,11 @@ class StaggeredFVProblem : public FVProblem<TypeTag>
public:
/*!
* \brief Constructor
* \param fvGridGeometry The finite volume grid geometry
* \param gridGeometry The finite volume grid geometry
* \param paramGroup The parameter group in which to look for runtime parameters first (default is "")
*/
StaggeredFVProblem(std::shared_ptr<const GridGeometry> fvGridGeometry, const std::string& paramGroup = "")
: ParentType(fvGridGeometry, paramGroup)
StaggeredFVProblem(std::shared_ptr<const GridGeometry> gridGeometry, const std::string& paramGroup = "")
: ParentType(gridGeometry, paramGroup)
{ }
/*!
......
......@@ -51,9 +51,9 @@ public:
//! Constructor with element and solution and grid geometry
template<class SolutionVector>
BoxElementSolution(const Element& element, const SolutionVector& sol,
const GridGeometry& fvGridGeometry)
const GridGeometry& gridGeometry)
{
update(element, sol, fvGridGeometry);
update(element, sol, gridGeometry);
}
//! Constructor with element and elemVolVars and fvGeometry
......@@ -70,12 +70,12 @@ public:
//! extract the element solution from the solution vector using a mapper
template<class SolutionVector>
void update(const Element& element, const SolutionVector& sol,
const GridGeometry& fvGridGeometry)
const GridGeometry& gridGeometry)
{
const auto numVert = element.subEntities(GridView::dimension);
priVars_.resize(numVert);
for (int vIdx = 0; vIdx < numVert; ++vIdx)
priVars_[vIdx] = sol[fvGridGeometry.vertexMapper().subIndex(element, vIdx, GridView::dimension)];
priVars_[vIdx] = sol[gridGeometry.vertexMapper().subIndex(element, vIdx, GridView::dimension)];
}
//! extract the element solution from the solution vector using a local fv geometry
......
......@@ -79,7 +79,7 @@ public:
BoxGridFluxVariablesCache(const Problem& problem) : problemPtr_(&problem) {}
template<class GridGeometry, class GridVolumeVariables, class SolutionVector>
void update(const GridGeometry& fvGridGeometry,
void update(const GridGeometry& gridGeometry,
const GridVolumeVariables& gridVolVars,
const SolutionVector& sol,
bool forceUpdate = false)
......@@ -87,12 +87,12 @@ public:
// Here, we do not do anything unless it is a forced update
if (forceUpdate)
{
fluxVarsCache_.resize(fvGridGeometry.gridView().size(0));
for (const auto& element : elements(fvGridGeometry.gridView()))
fluxVarsCache_.resize(gridGeometry.gridView().size(0));
for (const auto& element : elements(gridGeometry.gridView()))
{
auto eIdx = fvGridGeometry.elementMapper().index(element);
auto eIdx = gridGeometry.elementMapper().index(element);
// bind the geometries and volume variables to the element (all the elements in stencil)
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bind(element);
auto elemVolVars = localView(gridVolVars);
......@@ -145,7 +145,7 @@ public:
BoxGridFluxVariablesCache(const Problem& problem) : problemPtr_(&problem) {}
template<class GridGeometry, class GridVolumeVariables, class SolutionVector>
void update(const GridGeometry& fvGridGeometry,
void update(const GridGeometry& gridGeometry,
const GridVolumeVariables& gridVolVars,
const SolutionVector& sol,
bool forceUpdate = false) {}
......
......@@ -75,18 +75,18 @@ public:
BoxGridVolumeVariables(const Problem& problem) : problemPtr_(&problem) {}
template<class GridGeometry, class SolutionVector>
void update(const GridGeometry& fvGridGeometry, const SolutionVector& sol)
void update(const GridGeometry& gridGeometry, const SolutionVector& sol)
{
volumeVariables_.resize(fvGridGeometry.gridView().size(0));
for (const auto& element : elements(fvGridGeometry.gridView()))
volumeVariables_.resize(gridGeometry.gridView().size(0));
for (const auto& element : elements(gridGeometry.gridView()))
{
auto eIdx = fvGridGeometry.elementMapper().index(element);
auto eIdx = gridGeometry.elementMapper().index(element);
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bindElement(element);
// get the element solution
auto elemSol = elementSolution(element, sol, fvGridGeometry);
auto elemSol = elementSolution(element, sol, gridGeometry);
// update the volvars of the element
volumeVariables_[eIdx].resize(fvGeometry.numScv());
......@@ -140,7 +140,7 @@ public:
BoxGridVolumeVariables(const Problem& problem) : problemPtr_(&problem) {}
template<class GridGeometry, class SolutionVector>
void update(const GridGeometry& fvGridGeometry, const SolutionVector& sol) {}
void update(const GridGeometry& gridGeometry, const SolutionVector& sol) {}
const Problem& problem() const
{ return *problemPtr_;}
......
......@@ -46,16 +46,16 @@ public:
// only do something for box
if (discMethod == DiscretizationMethod::box)
{
const auto& fvGridGeometry = problem.gridGeometry();
scvBoundaryTypes.resize(fvGridGeometry.vertexMapper().size());
const auto& gridGeometry = problem.gridGeometry();
scvBoundaryTypes.resize(gridGeometry.vertexMapper().size());
// set all equations to Neumann by default
for (std::size_t vIdx = 0; vIdx < scvBoundaryTypes.size(); vIdx++)
scvBoundaryTypes[vIdx].setAllNeumann();
for (const auto& element : elements(fvGridGeometry.gridView()))
for (const auto& element : elements(gridGeometry.gridView()))
{
// iterate over the scvfs
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bindElement(element);
for (const auto& scvf : scvfs(fvGeometry))
......
......@@ -73,22 +73,22 @@ public:
/*!
* \brief Initialize the ConnectivityMap object.
*
* \param fvGridGeometry The grid's finite volume geometry.
* \param gridGeometry The grid's finite volume geometry.
*/
void update(const GridGeometry& fvGridGeometry)
void update(const GridGeometry& gridGeometry)
{
map_.clear();
map_.resize(fvGridGeometry.gridView().size(0));
map_.resize(gridGeometry.gridView().size(0));
// container to store for each element J the elements I which have J in their flux stencil
Dune::ReservedVector<std::pair<GridIndexType, DataJ>, maxElemStencilSize> dataJForI;
for (const auto& element : elements(fvGridGeometry.gridView()))
for (const auto& element : elements(gridGeometry.gridView()))
{
// We are looking for the elements I, for which this element J is in the flux stencil
const auto globalJ = fvGridGeometry.elementMapper().index(element);
const auto globalJ = gridGeometry.elementMapper().index(element);
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bindElement(element);
// obtain the data of J in elements I
......
......@@ -52,8 +52,8 @@ public:
//! Constructor with element, solution vector and grid geometry
template<class SolutionVector>
CCElementSolution(const Element& element, const SolutionVector& sol,
const GridGeometry& fvGridGeometry)
: CCElementSolution(sol[fvGridGeometry.elementMapper().index(element)])
const GridGeometry& gridGeometry)
: CCElementSolution(sol[gridGeometry.elementMapper().index(element)])
{}
//! Constructor with element, element volume variables and fv element geometry
......@@ -76,9 +76,9 @@ public:
//! extract the element solution from the solution vector using a mapper
template<class SolutionVector>
void update(const Element& element, const SolutionVector& sol,
const GridGeometry& fvGridGeometry)
const GridGeometry& gridGeometry)
{
priVars_ = sol[fvGridGeometry.elementMapper().index(element)];
priVars_ = sol[gridGeometry.elementMapper().index(element)];
}
//! return the size of the element solution
......
......@@ -65,19 +65,19 @@ public:
CCGridVolumeVariables(const Problem& problem) : problemPtr_(&problem) {}
template<class GridGeometry, class SolutionVector>
void update(const GridGeometry& fvGridGeometry, const SolutionVector& sol)
void update(const GridGeometry& gridGeometry, const SolutionVector& sol)
{
const auto numScv = fvGridGeometry.numScv();
const auto numScv = gridGeometry.numScv();
volumeVariables_.resize(numScv);
for (const auto& element : elements(fvGridGeometry.gridView()))
for (const auto& element : elements(gridGeometry.gridView()))
{
auto fvGeometry = localView(fvGridGeometry);
auto fvGeometry = localView(gridGeometry);
fvGeometry.bindElement(element);
for (auto&& scv : scvs(fvGeometry))
{
const auto elemSol = elementSolution(element, sol, fvGridGeometry);
const auto elemSol = elementSolution(element, sol, gridGeometry);
volumeVariables_[scv.dofIndex()].update(elemSol, problem(), element, scv);
}
}
......@@ -137,7 +137,7 @@ public:
CCGridVolumeVariables(const Problem& problem) : problemPtr_(&problem) {}
template<class GridGeometry, class SolutionVector>
void update(const GridGeometry& fvGridGeometry, const SolutionVector& sol) {}
void update(const GridGeometry& gridGeometry, const SolutionVector& sol) {}
//! The problem we are solving
const Problem& problem() const
......
......@@ -162,8 +162,8 @@ public:
std::size_t numSecondaryIv; numSecondaryIv = 0;
std::size_t numCaches; numCaches = 0;
const auto& fvGridGeometry = fvGeometry.gridGeometry();
const auto& gridIvIndexSets = fvGridGeometry.gridInteractionVolumeIndexSets();
const auto& gridGeometry = fvGeometry.gridGeometry();
const auto& gridIvIndexSets = gridGeometry.gridInteractionVolumeIndexSets();
// lambda to check if a scvf was handled already
auto scvfHandled = [&] (auto idx)
......@@ -191,21 +191,21 @@ public:
// search for ivs at boundary vertices
for (const auto& scvf : scvfs(fvGeometry))
fvGridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()) ?
gridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()) ?
handleScvf(scvf, gridIvIndexSets.secondaryIndexSet(scvf), true) :
handleScvf(scvf, gridIvIndexSets.primaryIndexSet(scvf), false) ;
// skip the rest if there are no boundary caches to be created
if (numCaches > 0)
{
const auto& assemblyMapI = fvGridGeometry.connectivityMap()[fvGridGeometry.elementMapper().index(element)];
const auto& assemblyMapI = gridGeometry.connectivityMap()[gridGeometry.elementMapper().index(element)];
for (const auto& dataJ : assemblyMapI)
{
for (const auto& scvfJIdx : dataJ.scvfsJ)
{
const auto& scvfJ = fvGeometry.scvf(scvfJIdx);
if (fvGridGeometry.vertexUsesSecondaryInteractionVolume(scvfJ.vertexIndex()))
if (gridGeometry.vertexUsesSecondaryInteractionVolume(scvfJ.vertexIndex()))
handleScvf(scvfJ, gridIvIndexSets.secondaryIndexSet(scvfJ), true);
else
handleScvf(scvfJ, gridIvIndexSets.primaryIndexSet(scvfJ), false);
......@@ -320,9 +320,9 @@ private:
template<class SubControlVolumeFace>
bool isEmbeddedInBoundaryIV_(const SubControlVolumeFace& scvf) const
{
const auto& fvGridGeometry = gridFluxVarsCachePtr_->problem().gridGeometry();
const auto& gridIvIndexSets = fvGridGeometry.gridInteractionVolumeIndexSets();
if (fvGridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()))
const auto& gridGeometry = gridFluxVarsCachePtr_->problem().gridGeometry();
const auto& gridIvIndexSets = gridGeometry.gridInteractionVolumeIndexSets();
if (gridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()))
return gridIvIndexSets.secondaryIndexSet(scvf).nodalIndexSet().numBoundaryScvfs() > 0;
else
return gridIvIndexSets.primaryIndexSet(scvf).nodalIndexSet().numBoundaryScvfs() > 0;
......@@ -397,10 +397,10 @@ public:
// some references for convenience
const auto& problem = gridFluxVarsCache().problem();
const auto& fvGridGeometry = fvGeometry.gridGeometry();
const auto& gridGeometry = fvGeometry.gridGeometry();
// the assembly map of the given element
const auto& assemblyMapI = fvGridGeometry.connectivityMap()[fvGridGeometry.elementMapper().index(element)];
const auto& assemblyMapI = gridGeometry.connectivityMap()[gridGeometry.elementMapper().index(element)];
// reserve memory for scvf index container
unsigned int numNeighborScvfs = 0;
......@@ -445,7 +445,7 @@ public:
for (const auto& dataJ : assemblyMapI)
{
const auto elementJ = fvGridGeometry.element(dataJ.globalJ);
const auto elementJ = gridGeometry.element(dataJ.globalJ);
for (const auto scvfIdx : dataJ.scvfsJ)
{
auto& scvfCache = fluxVarsCache_[i++];
......@@ -485,8 +485,8 @@ public:
if (FluxVariablesCacheFiller::isSolDependent)
{
const auto& problem = gridFluxVarsCache().problem();
const auto& fvGridGeometry = fvGeometry.gridGeometry();
const auto& assemblyMapI = fvGridGeometry.connectivityMap()[fvGridGeometry.elementMapper().index(element)];
const auto& gridGeometry = fvGeometry.gridGeometry();
const auto& assemblyMapI = gridGeometry.connectivityMap()[gridGeometry.elementMapper().index(element)];
// helper class to fill flux variables caches
FluxVariablesCacheFiller filler(problem);
......@@ -506,7 +506,7 @@ public:
for (const auto& dataJ : assemblyMapI)
{
const auto elementJ = fvGridGeometry.element(dataJ.globalJ);
const auto elementJ = gridGeometry.element(dataJ.globalJ);
for (const auto scvfIdx : dataJ.scvfsJ)
{
auto& scvfCache = fluxVarsCache_[i++];
......
......@@ -48,13 +48,13 @@ namespace CCMpfa {
template<class FVElementGeometry>
std::size_t maxNumBoundaryVolVars(const FVElementGeometry& fvGeometry)
{
const auto& fvGridGeometry = fvGeometry.gridGeometry();
const auto& gridIvIndexSets = fvGridGeometry.gridInteractionVolumeIndexSets();
const auto& gridGeometry = fvGeometry.gridGeometry();
const auto& gridIvIndexSets = gridGeometry.gridInteractionVolumeIndexSets();
std::size_t numBoundaryVolVars = 0;
for (const auto& scvf : scvfs(fvGeometry))
{
if (!fvGridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()))
if (!gridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()))
numBoundaryVolVars += gridIvIndexSets.primaryIndexSet(scvf).nodalIndexSet().numBoundaryScvfs();
else
numBoundaryVolVars += gridIvIndexSets.secondaryIndexSet(scvf).nodalIndexSet().numBoundaryScvfs();
......@@ -138,12 +138,12 @@ namespace CCMpfa {
const typename FVElemGeom::GridGeometry::GridView::template Codim<0>::Entity& element,
const FVElemGeom& fvGeometry)
{
const auto& fvGridGeometry = fvGeometry.gridGeometry();
const auto& gridGeometry = fvGeometry.gridGeometry();
// treat the BCs inside the element
if (fvGeometry.hasBoundaryScvf())
{
const auto boundElemIdx = fvGridGeometry.elementMapper().index(element);
const auto boundElemIdx = gridGeometry.elementMapper().index(element);
const auto& scvI = fvGeometry.scv(boundElemIdx);
for (const auto& scvf : scvfs(fvGeometry))
......@@ -168,10 +168,10 @@ namespace CCMpfa {
}
// Update boundary volume variables in the neighbors
const auto& gridIvIndexSets = fvGridGeometry.gridInteractionVolumeIndexSets();
const auto& gridIvIndexSets = gridGeometry.gridInteractionVolumeIndexSets();
for (const auto& scvf : scvfs(fvGeometry))
{
if (!fvGridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()))
if (!gridGeometry.vertexUsesSecondaryInteractionVolume(scvf.vertexIndex()))
addBoundaryVolVarsAtNode( volVars, volVarIndices, problem, element, fvGeometry,
gridIvIndexSets.primaryIndexSet(scvf).nodalIndexSet() );
else
......@@ -307,11 +307,11 @@ public:
clear();
const auto& problem = gridVolVars().problem();
const auto& fvGridGeometry = fvGeometry.gridGeometry();
const auto& gridGeometry = fvGeometry.gridGeometry();
// stencil information
const auto globalI = fvGridGeometry.elementMapper().index(element);
const auto& assemblyMapI = fvGridGeometry.connectivityMap()[globalI];
const auto globalI = gridGeometry.elementMapper().index(element);
const auto& assemblyMapI = gridGeometry.connectivityMap()[globalI];
const auto numVolVars = assemblyMapI.size() + 1;
// resize local containers to the required size (for internal elements)
......@@ -321,7 +321,7 @@ public:
VolumeVariables volVars;
const auto& scvI = fvGeometry.scv(globalI);
volVars.update(elementSolution(element, sol, fvGridGeometry),
volVars.update(elementSolution(element, sol, gridGeometry),
problem,
element,
scvI);
......@@ -332,10 +332,10 @@ public:
// Update the volume variables of the neighboring elements
for (auto&& dataJ : assemblyMapI)
{
const auto& elementJ = fvGridGeometry.element(dataJ.globalJ);
const auto& elementJ = gridGeometry.element(dataJ.globalJ);
const auto& scvJ = fvGeometry.scv(dataJ.globalJ);
VolumeVariables volVarsJ;
volVarsJ.update(elementSolution(elementJ, sol, fvGridGeometry),
volVarsJ.update(elementSolution(elementJ, sol, gridGeometry),
problem,
elementJ,
scvJ);
......@@ -357,11 +357,11 @@ public:
// volVarIndices_.reserve(volVarIndices_.size() + additionalDofDependencies.size());
// for (auto globalJ : additionalDofDependencies)
// {
// const auto& elementJ = fvGridGeometry.element(globalJ);
// const auto& elementJ = gridGeometry.element(globalJ);
// const auto& scvJ = fvGeometry.scv(globalJ);
// VolumeVariables additionalVolVars;
// additionalVolVars.update(elementSolution(elementJ, sol, fvGridGeometry),
// additionalVolVars.update(elementSolution(elementJ, sol, gridGeometry),
// problem,