Skip to content
GitLab
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
2b0189cd
Commit
2b0189cd
authored
Jul 25, 2019
by
Timo Koch
Browse files
[io][grid][gmshflag] Use numeric limits of size_t for invalid flag
parent
f7de1852
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/io/grid/gmshboundaryflag.hh
View file @
2b0189cd
...
...
@@ -25,6 +25,7 @@
#ifndef DUMUX_GMSH_BOUNDARY_FLAG_HH
#define DUMUX_GMSH_BOUNDARY_FLAG_HH
#include
<limits>
namespace
Dumux
{
...
...
@@ -35,10 +36,12 @@ namespace Dumux {
class
GmshBoundaryFlag
{
public:
GmshBoundaryFlag
()
:
flag_
(
-
1
)
{}
GmshBoundaryFlag
()
:
flag_
(
std
::
numeric_limits
<
std
::
size_t
>::
max
())
{}
template
<
class
Intersection
>
GmshBoundaryFlag
(
const
Intersection
&
i
)
:
flag_
(
-
1
)
GmshBoundaryFlag
(
const
Intersection
&
i
)
:
flag_
(
std
::
numeric_limits
<
std
::
size_t
>::
max
())
{
if
(
i
.
boundary
())
flag_
=
i
.
boundarySegmentIndex
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment