Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
cecc2de2
Commit
cecc2de2
authored
3 months ago
by
Leon Keim
Committed by
Timo Koch
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix lambda capture in parametersforgeneratedgrid.hh
parent
d513c57d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3913
Make lambda captures explicit for C++ 20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/io/grid/porenetwork/parametersforgeneratedgrid.hh
+5
-5
5 additions, 5 deletions
dumux/io/grid/porenetwork/parametersforgeneratedgrid.hh
with
5 additions
and
5 deletions
dumux/io/grid/porenetwork/parametersforgeneratedgrid.hh
+
5
−
5
View file @
cecc2de2
...
...
@@ -244,7 +244,7 @@ private:
/*!
* \brief Returns a list of boundary face priorities from user specified input or default values if no input is given
*
* This essentially determines the index of a node on an edge or corner. For instance in a 2D case, a list of {0,1,2,3}
* This essentially determines the index of a node on an edge or corner. For instance in a 2D case, a list of {0,1,2,3}
* will give highest priority to the "x-direction" and lowest to the "diagonal-direction".
*/
BoundaryList
getPriorityList_
()
const
...
...
@@ -410,7 +410,7 @@ private:
const
auto
generateFunction
=
[
&
](
auto
&
poreRadiusDist
)
{
return
[
=
](
const
auto
&
vertex
,
const
int
poreLabel
)
mutable
return
[
=
,
this
](
const
auto
&
vertex
,
const
int
poreLabel
)
mutable
{
const
auto
radius
=
poreRadiusDist
(
generator
);
...
...
@@ -518,7 +518,7 @@ private:
DUNE_THROW
(
Dune
::
InvalidStateException
,
"CapPoresOnBoundaries must not contain duplicates"
);
// automatically determine the pore volume if not provided by the grid file
return
[
=
]
(
const
auto
&
vertex
,
const
auto
vIdx
)
return
[
=
,
this
]
(
const
auto
&
vertex
,
const
auto
vIdx
)
{
const
Scalar
r
=
getParameter
(
vertex
,
"PoreInscribedRadius"
);
const
Scalar
volume
=
[
&
]
...
...
@@ -570,7 +570,7 @@ private:
// shape parameter for calculation of throat radius
const
Scalar
throatN
=
getParamFromGroup
<
Scalar
>
(
paramGroup_
,
prefix
+
"ThroatInscribedRadiusN"
,
0.1
);
return
[
=
](
const
Element
&
element
)
return
[
=
,
this
](
const
Element
&
element
)
{
const
Scalar
delta
=
element
.
geometry
().
volume
();
const
std
::
array
<
Vertex
,
2
>
vertices
=
{
element
.
template
subEntity
<
dim
>(
0
),
element
.
template
subEntity
<
dim
>(
1
)};
...
...
@@ -597,7 +597,7 @@ private:
// decide whether to subtract the pore radii from the throat length or not
const
bool
subtractRadiiFromThroatLength
=
getParamFromGroup
<
bool
>
(
paramGroup_
,
prefix
+
"SubtractPoreInscribedRadiiFromThroatLength"
,
true
);
return
[
=
](
const
Element
&
element
)
return
[
=
,
this
](
const
Element
&
element
)
{
if
(
inputThroatLength
>
0.0
)
return
inputThroatLength
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment