Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dune-multimesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Praetorius, Simon
dune-multimesh
Commits
dc791b13
Commit
dc791b13
authored
Nov 28, 2018
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed some warnings
parent
d17b7a5d
Pipeline
#1490
passed with stage
in 3 minutes and 57 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
dune/multimesh/mmiteratorbase.hh
dune/multimesh/mmiteratorbase.hh
+1
-1
src/benchmark.cc
src/benchmark.cc
+3
-0
No files found.
dune/multimesh/mmiteratorbase.hh
View file @
dc791b13
...
@@ -175,7 +175,7 @@ namespace Dune
...
@@ -175,7 +175,7 @@ namespace Dune
{
{
std
::
size_t
size
=
entityStacks_
[
i
].
size
();
std
::
size_t
size
=
entityStacks_
[
i
].
size
();
return
std
::
accumulate
(
entityStacks_
.
begin
(),
entityStacks_
.
end
(),
true
,
return
std
::
accumulate
(
entityStacks_
.
begin
(),
entityStacks_
.
end
(),
true
,
[
i
,
size
](
bool
allowed
,
auto
const
&
entityStack
)
{
[
size
](
bool
allowed
,
auto
const
&
entityStack
)
{
return
allowed
&&
(
entityStack
.
size
()
<=
size
||
entityStack
.
finished
(
size
));
return
allowed
&&
(
entityStack
.
size
()
<=
size
||
entityStack
.
finished
(
size
));
});
});
}
}
...
...
src/benchmark.cc
View file @
dc791b13
...
@@ -38,9 +38,12 @@ template <class Grid>
...
@@ -38,9 +38,12 @@ template <class Grid>
std
::
size_t
traverse
(
Grid
const
&
grid
)
std
::
size_t
traverse
(
Grid
const
&
grid
)
{
{
std
::
size_t
num
=
0
;
std
::
size_t
num
=
0
;
double
vol
=
0.0
;
for
(
auto
const
&
entities
:
elements
(
grid
.
leafGridView
()))
{
for
(
auto
const
&
entities
:
elements
(
grid
.
leafGridView
()))
{
++
num
;
++
num
;
vol
+=
entities
.
geometry
().
volume
();
}
}
std
::
cout
<<
"volume = "
<<
vol
<<
"
\n
"
;
return
num
;
return
num
;
}
}
...
...
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