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
523c55c1
Commit
523c55c1
authored
3 years ago
by
Matthieu Schaller
Committed by
Matthieu Schaller
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Throw errors if self/pair are found in the ghosts
parent
e71ace11
No related branches found
No related tags found
1 merge request
!1353
Draft: Subtask speedup - Still requires work
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner_ghost.c
+20
-3
20 additions, 3 deletions
src/runner_ghost.c
with
20 additions
and
3 deletions
src/runner_ghost.c
+
20
−
3
View file @
523c55c1
...
...
@@ -472,13 +472,20 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) {
#endif
/* Self-interaction? */
if
(
l
->
t
->
type
==
task_type_self
)
if
(
l
->
t
->
type
==
task_type_self
)
{
#ifdef ONLY_SUBTASKS
error
(
"Found some self tasks!"
);
#else
runner_doself_subset_branch_stars_density
(
r
,
finger
,
sparts
,
sid
,
scount
);
#endif
}
/* Otherwise, pair interaction? */
else
if
(
l
->
t
->
type
==
task_type_pair
)
{
#ifdef ONLY_SUBTASKS
error
(
"Found some pair tasks!"
);
#else
/* Left or right? */
if
(
l
->
t
->
ci
==
finger
)
runner_dopair_subset_branch_stars_density
(
...
...
@@ -486,6 +493,7 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) {
else
runner_dopair_subset_branch_stars_density
(
r
,
finger
,
sparts
,
sid
,
scount
,
l
->
t
->
ci
);
#endif
}
/* Otherwise, sub-self interaction? */
...
...
@@ -802,13 +810,21 @@ void runner_do_black_holes_density_ghost(struct runner *r, struct cell *c,
#endif
/* Self-interaction? */
if
(
l
->
t
->
type
==
task_type_self
)
if
(
l
->
t
->
type
==
task_type_self
){
#ifdef ONLY_SUBTASKS
error
(
"Found some self tasks!"
);
#else
runner_doself_subset_branch_bh_density
(
r
,
finger
,
bparts
,
sid
,
bcount
);
#endif
}
/* Otherwise, pair interaction? */
else
if
(
l
->
t
->
type
==
task_type_pair
)
{
#ifdef ONLY_SUBTASKS
error
(
"Found some pair tasks!"
);
#else
/* Left or right? */
if
(
l
->
t
->
ci
==
finger
)
runner_dopair_subset_branch_bh_density
(
r
,
finger
,
bparts
,
sid
,
...
...
@@ -816,6 +832,7 @@ void runner_do_black_holes_density_ghost(struct runner *r, struct cell *c,
else
runner_dopair_subset_branch_bh_density
(
r
,
finger
,
bparts
,
sid
,
bcount
,
l
->
t
->
ci
);
#endif
}
/* Otherwise, sub-self interaction? */
...
...
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