Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
01726daf
Commit
01726daf
authored
6 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Time more functions.
parent
9bf478b6
No related branches found
No related tags found
1 merge request
!930
Parco 2019 debug
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fof.c
+22
-0
22 additions, 0 deletions
src/fof.c
with
22 additions
and
0 deletions
src/fof.c
+
22
−
0
View file @
01726daf
...
@@ -2032,6 +2032,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
...
@@ -2032,6 +2032,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
}
}
}
}
if
(
verbose
)
message
(
"Finding max no. of cells + offset IDs"
"took: %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic
),
clocks_getunit
());
const
int
cell_pair_size
=
num_cells_in
*
num_cells_out
;
const
int
cell_pair_size
=
num_cells_in
*
num_cells_out
;
if
(
swift_memalign
(
"fof_group_links"
,
(
void
**
)
&
props
->
group_links
,
if
(
swift_memalign
(
"fof_group_links"
,
(
void
**
)
&
props
->
group_links
,
...
@@ -2044,6 +2050,8 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
...
@@ -2044,6 +2050,8 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
cell_pair_size
*
sizeof
(
struct
cell_pair_indices
))
!=
0
)
cell_pair_size
*
sizeof
(
struct
cell_pair_indices
))
!=
0
)
error
(
"Error while allocating memory for FOF cell pair indices"
);
error
(
"Error while allocating memory for FOF cell pair indices"
);
ticks
tic_pairs
=
getticks
();
/* Loop over cells_in and cells_out for each proxy and find which cells are in
/* Loop over cells_in and cells_out for each proxy and find which cells are in
* range of each other to perform the FOF search. Store local cells that are
* range of each other to perform the FOF search. Store local cells that are
* touching foreign cells in a list. */
* touching foreign cells in a list. */
...
@@ -2086,6 +2094,14 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
...
@@ -2086,6 +2094,14 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
}
}
}
}
if
(
verbose
)
message
(
"Finding local/foreign cell pairs"
"took: %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic_pairs
),
clocks_getunit
());
ticks
tic_set_roots
=
getticks
();
/* Set the root of outgoing particles. */
/* Set the root of outgoing particles. */
for
(
int
i
=
0
;
i
<
e
->
nr_proxies
;
i
++
)
{
for
(
int
i
=
0
;
i
<
e
->
nr_proxies
;
i
++
)
{
...
@@ -2106,6 +2122,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
...
@@ -2106,6 +2122,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
}
}
}
}
}
}
if
(
verbose
)
message
(
"Initialising particle roots "
"took: %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic_set_roots
),
clocks_getunit
());
if
(
verbose
)
if
(
verbose
)
message
(
message
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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