Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Schruff
waLBerla
Commits
bfb3b85e
Commit
bfb3b85e
authored
Mar 21, 2018
by
Christoph Rettinger
Browse files
Added check to AMR in coupling for improved performance
parent
a45d2c16
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp
View file @
bfb3b85e
...
...
@@ -869,9 +869,18 @@ int main( int argc, char **argv )
{
auto
&
forest
=
blocks
->
getBlockForest
();
pe
::
createWithNeighborhood
(
forest
,
bodyStorageID
,
*
peInfoCollection
);
pe
::
clearSynchronization
(
blockforest
,
bodyStorageID
);
uint_t
stampBefore
=
blocks
->
getBlockForest
().
getModificationStamp
();
blocks
->
refresh
();
uint_t
stampAfter
=
blocks
->
getBlockForest
().
getModificationStamp
();
if
(
stampBefore
==
stampAfter
)
{
// nothing has changed
continue
;
}
pe
::
clearSynchronization
(
blockforest
,
bodyStorageID
);
for
(
uint_t
syncStep
=
0
;
syncStep
<
uint_c
(
diameter
/
real_c
(
minBlockSizeInCells
))
+
1
;
++
syncStep
)
syncCall
();
...
...
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