Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dorie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dorie
dorie
Commits
194d9449
Commit
194d9449
authored
Aug 11, 2018
by
Lukas Riedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'const' qualifiers to arguments and members of new GF adapters
parent
1a029521
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
dune/dorie/solver/adapters/conductivity.hh
dune/dorie/solver/adapters/conductivity.hh
+3
-2
dune/dorie/solver/adapters/saturation.hh
dune/dorie/solver/adapters/saturation.hh
+5
-3
dune/dorie/solver/adapters/water_content.hh
dune/dorie/solver/adapters/water_content.hh
+5
-3
dune/dorie/solver/adapters/water_flux.hh
dune/dorie/solver/adapters/water_flux.hh
+8
-6
No files found.
dune/dorie/solver/adapters/conductivity.hh
View file @
194d9449
...
...
@@ -44,7 +44,8 @@ namespace Dune{
* @param p Parametrization class
* @see RichardsEquationParameter
*/
ConductivityAdapter
(
const
typename
Traits
::
GridViewType
&
gv
,
std
::
shared_ptr
<
P
>
p
)
ConductivityAdapter
(
const
typename
Traits
::
GridViewType
&
gv
,
const
std
::
shared_ptr
<
P
>
p
)
:
_gv
(
gv
)
,
_p
(
p
)
{}
...
...
@@ -78,7 +79,7 @@ namespace Dune{
private:
const
typename
Traits
::
GridViewType
_gv
;
std
::
shared_ptr
<
P
>
_p
;
const
std
::
shared_ptr
<
P
>
_p
;
};
}
...
...
dune/dorie/solver/adapters/saturation.hh
View file @
194d9449
...
...
@@ -46,7 +46,9 @@ namespace Dune{
* @param p Parametrization class
* @see RichardsEquationParameter
*/
SaturationAdapter
(
std
::
shared_ptr
<
GF
>
gf_h
,
const
typename
Traits
::
GridViewType
&
gv
,
std
::
shared_ptr
<
P
>
p
)
SaturationAdapter
(
const
std
::
shared_ptr
<
GF
>
gf_h
,
const
typename
Traits
::
GridViewType
&
gv
,
const
std
::
shared_ptr
<
P
>
p
)
:
_gf_h
(
gf_h
)
,
_gv
(
gv
)
,
_p
(
p
)
...
...
@@ -79,9 +81,9 @@ namespace Dune{
}
private:
std
::
shared_ptr
<
GF
>
_gf_h
;
const
std
::
shared_ptr
<
GF
>
_gf_h
;
const
typename
Traits
::
GridViewType
_gv
;
std
::
shared_ptr
<
P
>
_p
;
const
std
::
shared_ptr
<
P
>
_p
;
};
}
...
...
dune/dorie/solver/adapters/water_content.hh
View file @
194d9449
...
...
@@ -46,7 +46,9 @@ namespace Dune{
* @param p Parametrization class
* @see RichardsEquationParameter
*/
WaterContentAdapter
(
std
::
shared_ptr
<
GF
>
gf_h
,
const
typename
Traits
::
GridViewType
&
gv
,
std
::
shared_ptr
<
P
>
p
)
WaterContentAdapter
(
const
std
::
shared_ptr
<
GF
>
gf_h
,
const
typename
Traits
::
GridViewType
&
gv
,
const
std
::
shared_ptr
<
P
>
p
)
:
_gf_h
(
gf_h
)
,
_gv
(
gv
)
,
_p
(
p
)
...
...
@@ -79,9 +81,9 @@ namespace Dune{
}
private:
std
::
shared_ptr
<
GF
>
_gf_h
;
const
std
::
shared_ptr
<
GF
>
_gf_h
;
const
typename
Traits
::
GridViewType
_gv
;
std
::
shared_ptr
<
P
>
_p
;
const
std
::
shared_ptr
<
P
>
_p
;
};
}
}
...
...
dune/dorie/solver/adapters/water_flux.hh
View file @
194d9449
...
...
@@ -33,7 +33,9 @@ namespace Dune{
* @param[in] x Shared pointer to a coefficients for a gfs
* @param[in] p Parameters for the richards equation
*/
WaterFluxAdapter
(
std
::
shared_ptr
<
GFS
>
gfs
,
std
::
shared_ptr
<
X
>
x
,
std
::
shared_ptr
<
Parameters
>
p
)
WaterFluxAdapter
(
const
std
::
shared_ptr
<
GFS
>
gfs
,
const
std
::
shared_ptr
<
X
>
x
,
const
std
::
shared_ptr
<
Parameters
>
p
)
:
_gfs
(
gfs
)
,
_p
(
p
)
,
_x
(
x
)
...
...
@@ -82,11 +84,11 @@ namespace Dune{
}
private:
std
::
shared_ptr
<
GFS
>
_gfs
;
std
::
shared_ptr
<
Parameters
>
_p
;
std
::
shared_ptr
<
X
>
_x
;
DiscreteGridFunction
_dgf_h
;
DiscreteGridFunctionGradient
_dgf_h_grad
;
const
std
::
shared_ptr
<
GFS
>
_gfs
;
const
std
::
shared_ptr
<
Parameters
>
_p
;
const
std
::
shared_ptr
<
X
>
_x
;
const
DiscreteGridFunction
_dgf_h
;
const
DiscreteGridFunctionGradient
_dgf_h_grad
;
};
}
...
...
Write
Preview
Markdown
is supported
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