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
Dominik Mehlich
waLBerla
Commits
d5ddf031
Commit
d5ddf031
authored
Aug 30, 2019
by
Sebastian Eibl
Browse files
added information about currently running part
parent
607a25a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/benchmarks/GranularGas/MESA_PD_KernelLoadBalancing.cpp
View file @
d5ddf031
...
@@ -258,6 +258,7 @@ int main( int argc, char ** argv )
...
@@ -258,6 +258,7 @@ int main( int argc, char ** argv )
WcTimingPool
tpImbalanced
;
WcTimingPool
tpImbalanced
;
WcTimingPool
tpBalanced
;
WcTimingPool
tpBalanced
;
WALBERLA_LOG_INFO_ON_ROOT
(
"*** RUNNING UNBALANCED SIMULATION ***"
);
WALBERLA_MPI_BARRIER
();
WALBERLA_MPI_BARRIER
();
tpImbalanced
[
"AssocToBlock"
].
start
();
tpImbalanced
[
"AssocToBlock"
].
start
();
for
(
int64_t
i
=
0
;
i
<
params
.
simulationSteps
;
++
i
)
for
(
int64_t
i
=
0
;
i
<
params
.
simulationSteps
;
++
i
)
...
@@ -344,7 +345,7 @@ int main( int argc, char ** argv )
...
@@ -344,7 +345,7 @@ int main( int argc, char ** argv )
WALBERLA_MPI_BARRIER
();
WALBERLA_MPI_BARRIER
();
if
(
bRebalance
)
if
(
bRebalance
)
{
{
WALBERLA_LOG_
DEVEL
_ON_ROOT
(
"
running load balancing
"
);
WALBERLA_LOG_
INFO
_ON_ROOT
(
"
*** RUNNING LOAD BALANCING ***
"
);
domain
::
createWithNeighborhood
(
accessor
,
*
forest
,
*
ic
);
domain
::
createWithNeighborhood
(
accessor
,
*
forest
,
*
ic
);
for
(
auto
pIt
=
ps
->
begin
();
pIt
!=
ps
->
end
();
)
for
(
auto
pIt
=
ps
->
begin
();
pIt
!=
ps
->
end
();
)
{
{
...
@@ -366,6 +367,9 @@ int main( int argc, char ** argv )
...
@@ -366,6 +367,9 @@ int main( int argc, char ** argv )
sortParticleStorage
(
*
ps
,
params
.
sorting
,
lc
->
domain_
,
uint_c
(
lc
->
numCellsPerDim_
[
0
]));
sortParticleStorage
(
*
ps
,
params
.
sorting
,
lc
->
domain_
,
uint_c
(
lc
->
numCellsPerDim_
[
0
]));
}
}
WALBERLA_MPI_BARRIER
();
WALBERLA_LOG_INFO_ON_ROOT
(
"*** RUNNING BALANCED SIMULATION ***"
);
WALBERLA_MPI_BARRIER
();
WALBERLA_MPI_BARRIER
();
tpBalanced
[
"AssocToBlock"
].
start
();
tpBalanced
[
"AssocToBlock"
].
start
();
for
(
int64_t
i
=
0
;
i
<
params
.
simulationSteps
;
++
i
)
for
(
int64_t
i
=
0
;
i
<
params
.
simulationSteps
;
++
i
)
...
...
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