Commit 681c1e16 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[mpfa-o] store const pointers instead of refs

parent b97e2748
......@@ -136,9 +136,9 @@ public:
const Problem& problem,
const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolVars)
: problemRef_(problem),
fvGeometryRef_(fvGeometry),
elemVolVarsRef_(elemVolVars),
: problemPtr_(&problem),
fvGeometryPtr_(&fvGeometry),
elemVolVarsPtr_(&elemVolVars),
onBoundary_(seed.onBoundary()),
globalScvfIndices_(seed.globalScvfIndices())
{
......@@ -508,17 +508,17 @@ private:
}
const Problem& problem_() const
{ return problemRef_; }
{ return *problemPtr_; }
const FVElementGeometry& fvGeometry_() const
{ return fvGeometryRef_; }
{ return *fvGeometryPtr_; }
const ElementVolumeVariables& elemVolVars_() const
{ return elemVolVarsRef_; }
{ return *elemVolVarsPtr_; }
const Problem& problemRef_;
const FVElementGeometry& fvGeometryRef_;
const ElementVolumeVariables& elemVolVarsRef_;
const Problem* problemPtr_;
const FVElementGeometry* fvGeometryPtr_;
const ElementVolumeVariables* elemVolVarsPtr_;
bool onBoundary_;
LocalIndexType eqIdx_;
......
......@@ -130,7 +130,7 @@ struct CCMpfaOLocalScvf
public:
CCMpfaOLocalScvf(const LocalScvfSeed& scvfSeed,
const SubControlVolumeFace& scvf)
: seed_(scvfSeed),
: seedPtr_(&scvfSeed),
center_(scvf.center()),
ip_(scvf.ipGlobal()),
normal_(scvf.unitOuterNormal()),
......@@ -175,9 +175,9 @@ public:
private:
const LocalScvfSeed& scvfSeed_() const
{ return seed_; }
{ return *seedPtr_; }
const LocalScvfSeed& seed_;
const LocalScvfSeed* seedPtr_;
GlobalPosition center_;
GlobalPosition ip_;
GlobalPosition normal_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment