Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-foamgrid
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
extensions
dune-foamgrid
Commits
844579b7
Commit
844579b7
authored
9 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Guard a few things by #ifndef NDEBUG that are only used within assertions
This silences a few warnings when compiling with -DNDEBUG.
parent
f8cfc225
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/foamgrid/foamgrid/foamgrid.cc
+4
-0
4 additions, 0 deletions
dune/foamgrid/foamgrid/foamgrid.cc
with
4 additions
and
0 deletions
dune/foamgrid/foamgrid/foamgrid.cc
+
4
−
0
View file @
844579b7
...
...
@@ -540,8 +540,10 @@ void Dune::FoamGrid<dimgrid, dimworld>::refineSimplexElement(FoamGridEntityImp<2
array
<
FoamGridEntityImp
<
1
,
dimgrid
,
dimworld
>*
,
9
>
nextLevelFacets
;
std
::
size_t
facetIndex
=
0
;
#ifndef NDEBUG
const
Dune
::
ReferenceElement
<
double
,
dimgrid
>&
refElement
=
Dune
::
ReferenceElements
<
double
,
dimgrid
>::
general
(
element
.
type
());
#endif
// I am just to dumb for a general facet to vertice mapping.
// Therefore we just store it here
...
...
@@ -552,9 +554,11 @@ void Dune::FoamGrid<dimgrid, dimworld>::refineSimplexElement(FoamGridEntityImp<2
for
(
FacetIterator
facet
=
element
.
facet_
.
begin
();
facet
!=
element
.
facet_
.
end
();
++
facet
)
{
#ifndef NDEBUG
typedef
FoamGridEntityImp
<
0
,
dimgrid
,
dimworld
>
FoamGridVertex
;
const
FoamGridVertex
*
v0
=
element
.
vertex_
[
refElement
.
subEntity
(
facetIndex
/
2
,
1
,
0
,
2
)];
const
FoamGridVertex
*
v1
=
element
.
vertex_
[
refElement
.
subEntity
(
facetIndex
/
2
,
1
,
1
,
2
)];
#endif
if
(
!
(
*
facet
)
->
nSons_
)
{
...
...
This diff is collapsed.
Click to expand it.
Oliver Sander
@oliver.sander
mentioned in commit
c8483855
·
9 years ago
mentioned in commit
c8483855
mentioned in commit c848385568149e87a849678355196c0df012387d
Toggle commit list
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