Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
n-body_methods
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
CodeVault
hpc-kernels
n-body_methods
Commits
49b5138a
Commit
49b5138a
authored
8 years ago
by
Paul Heinzlreiter
Browse files
Options
Downloads
Patches
Plain Diff
* reformatted log output
parent
962dc908
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bhtree_mpi/src/mpimain.cpp
+6
-6
6 additions, 6 deletions
bhtree_mpi/src/mpimain.cpp
with
6 additions
and
6 deletions
bhtree_mpi/src/mpimain.cpp
+
6
−
6
View file @
49b5138a
...
...
@@ -20,23 +20,23 @@ int main(int argc, char* argv[]) {
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
rank
);
//initialize and load particles
cout
<<
" "
<<
"rank "
<<
rank
<<
": initialize..."
<<
endl
;
cout
<<
"rank "
<<
rank
<<
": initialize..."
<<
endl
;
if
(
rank
==
0
)
{
cout
<<
" "
<<
"rank 0: load particles ..."
<<
endl
;
cout
<<
"rank 0: load particles ..."
<<
endl
;
}
simulation
.
initialize
(
string
(
argv
[
1
]));
//initial particle and domain distribution
if
(
rank
==
0
)
{
cout
<<
" "
<<
"rank 0: distribute particles to other processes ..."
<<
endl
;
cout
<<
"rank 0: distribute particles to other processes ..."
<<
endl
;
}
simulation
.
distributeBodies
();
cout
<<
" "
<<
"rank "
<<
rank
<<
": distributing initial domains to other processes ..."
<<
endl
;
cout
<<
"rank "
<<
rank
<<
": distributing initial domains to other processes ..."
<<
endl
;
simulation
.
distributeDomains
();
cout
<<
" "
<<
"rank "
<<
rank
<<
": building initial trees ..."
<<
endl
;
cout
<<
"rank "
<<
rank
<<
": building initial trees ..."
<<
endl
;
simulation
.
buildTree
();
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
//local tree is built and correct domains are distributed
cout
<<
"running simulation step "
<<
i
<<
" ..."
<<
endl
;
cout
<<
"
rank "
<<
rank
<<
":
running simulation step "
<<
i
<<
" ..."
<<
endl
;
simulation
.
runStep
();
}
simulation
.
cleanup
();
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment