Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
4153ca0a
Commit
4153ca0a
authored
Jan 19, 2019
by
Praetorius, Simon
Browse files
add changeIndex to track grid changes
parent
4fddde92
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/GridTransfer.hpp
View file @
4153ca0a
...
...
@@ -81,6 +81,13 @@ namespace AMDiS
vec
->
postAdapt
(
refined_
);
}
grid_
->
postAdapt
();
changeIndex_
++
;
}
/// Returns the grid change index, see \ref changeIndex.
unsigned
long
changeIndex
()
const
{
return
changeIndex_
;
}
private:
...
...
@@ -88,6 +95,10 @@ namespace AMDiS
std
::
list
<
DOFVectorInterface
*>
data_
;
bool
mightCoarsen_
=
false
;
bool
refined_
=
false
;
/// This index is incremented every time the grid is changed, e.g. by
/// refinement or coarsening.
unsigned
long
changeIndex_
=
0
;
};
}
// end namespace AMDiS
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