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
MLUQ
Commits
de784987
Commit
de784987
authored
Mar 08, 2021
by
niklas.baumgarten
Browse files
removing mgraph level, next might be plevel and maybe this guy disappears completely
parent
bc804d1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/src/basics/Level.cpp
View file @
de784987
...
...
@@ -5,18 +5,6 @@ void Level::Update(int level) {
fine
=
level
;
coarse
=
level
-
1
;
pLevel
=
coarse
;
mGfine
=
fine
-
pLevel
;
if
(
coarse
-
pLevel
>
0
)
mGcoarse
=
coarse
-
pLevel
;
else
mGcoarse
=
0
;
}
int
Level
::
MGLevel
(
bool
getCoarse
)
const
{
if
(
getCoarse
)
return
mGcoarse
;
else
return
mGfine
;
}
bool
Level
::
operator
==
(
const
Level
&
level
)
const
{
...
...
@@ -26,10 +14,6 @@ bool Level::operator==(const Level &level) const {
return
false
;
if
(
this
->
pLevel
!=
level
.
pLevel
)
return
false
;
if
(
this
->
mGfine
!=
level
.
mGfine
)
return
false
;
if
(
this
->
mGcoarse
!=
level
.
mGcoarse
)
return
false
;
return
true
;
}
...
...
mlmc/src/basics/Level.hpp
View file @
de784987
...
...
@@ -17,8 +17,6 @@ struct Level {
int
fine
;
int
coarse
;
int
pLevel
;
int
mGfine
;
int
mGcoarse
;
Level
()
{}
...
...
@@ -28,7 +26,10 @@ struct Level {
void
Update
(
int
level
);
int
MGLevel
(
bool
getCoarse
)
const
;
int
ActualLevel
(
bool
getCoarse
)
const
{
if
(
getCoarse
)
return
fine
;
else
return
coarse
;
};
bool
operator
==
(
const
Level
&
level
)
const
;
...
...
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