Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
Mpp
Commits
6a356742
Commit
6a356742
authored
Jan 20, 2022
by
daniele.corallo
Browse files
[403-add-stdist-warnings] added str fct to levelpair
parent
12b64708
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib2_mesh/mesh/Mesh.hpp
View file @
6a356742
...
...
@@ -24,6 +24,13 @@ struct LevelPair {
LevelPair
CoarserInTime
()
const
{
return
LevelPair
{
space
,
time
-
1
};
}
LevelPair
Next
()
const
{
return
LevelPair
{
space
+
1
,
time
+
1
};
}
std
::
string
str
()
const
{
std
::
stringstream
ss
;
ss
<<
"["
<<
space
<<
", "
<<
time
<<
"]"
;
return
ss
.
str
();
}
};
inline
bool
operator
==
(
const
LevelPair
&
l1
,
const
LevelPair
&
l2
)
{
...
...
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