Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
681c1e16
Commit
681c1e16
authored
Oct 22, 2016
by
Dennis Gläser
Committed by
Timo Koch
Nov 23, 2016
Browse files
[mpfa-o] store const pointers instead of refs
parent
b97e2748
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/mpfa/omethod/interactionvolume.hh
View file @
681c1e16
...
...
@@ -136,9 +136,9 @@ public:
const
Problem
&
problem
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
)
:
problem
Ref
_
(
problem
),
fvGeometry
Ref
_
(
fvGeometry
),
elemVolVars
Ref
_
(
elemVolVars
),
:
problem
Ptr
_
(
&
problem
),
fvGeometry
Ptr
_
(
&
fvGeometry
),
elemVolVars
Ptr
_
(
&
elemVolVars
),
onBoundary_
(
seed
.
onBoundary
()),
globalScvfIndices_
(
seed
.
globalScvfIndices
())
{
...
...
@@ -508,17 +508,17 @@ private:
}
const
Problem
&
problem_
()
const
{
return
problem
Ref
_
;
}
{
return
*
problem
Ptr
_
;
}
const
FVElementGeometry
&
fvGeometry_
()
const
{
return
fvGeometry
Ref
_
;
}
{
return
*
fvGeometry
Ptr
_
;
}
const
ElementVolumeVariables
&
elemVolVars_
()
const
{
return
elemVolVars
Ref
_
;
}
{
return
*
elemVolVars
Ptr
_
;
}
const
Problem
&
problem
Ref
_
;
const
FVElementGeometry
&
fvGeometry
Ref
_
;
const
ElementVolumeVariables
&
elemVolVars
Ref
_
;
const
Problem
*
problem
Ptr
_
;
const
FVElementGeometry
*
fvGeometry
Ptr
_
;
const
ElementVolumeVariables
*
elemVolVars
Ptr
_
;
bool
onBoundary_
;
LocalIndexType
eqIdx_
;
...
...
dumux/discretization/cellcentered/mpfa/omethod/localsubcontrolentities.hh
View file @
681c1e16
...
...
@@ -130,7 +130,7 @@ struct CCMpfaOLocalScvf
public:
CCMpfaOLocalScvf
(
const
LocalScvfSeed
&
scvfSeed
,
const
SubControlVolumeFace
&
scvf
)
:
seed_
(
scvfSeed
),
:
seed
Ptr
_
(
&
scvfSeed
),
center_
(
scvf
.
center
()),
ip_
(
scvf
.
ipGlobal
()),
normal_
(
scvf
.
unitOuterNormal
()),
...
...
@@ -175,9 +175,9 @@ public:
private:
const
LocalScvfSeed
&
scvfSeed_
()
const
{
return
seed_
;
}
{
return
*
seed
Ptr
_
;
}
const
LocalScvfSeed
&
seed_
;
const
LocalScvfSeed
*
seed
Ptr
_
;
GlobalPosition
center_
;
GlobalPosition
ip_
;
GlobalPosition
normal_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment