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
d29eb446
Commit
d29eb446
authored
8 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
do not re-sort when doing subset interactions as cj is not locked.
parent
7ad41c62
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!327
Rebuild criteria
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner_doiact.h
+7
-6
7 additions, 6 deletions
src/runner_doiact.h
with
7 additions
and
6 deletions
src/runner_doiact.h
+
7
−
6
View file @
d29eb446
...
@@ -461,7 +461,7 @@ void DOPAIR_SUBSET_NAIVE(struct runner *r, struct cell *restrict ci,
...
@@ -461,7 +461,7 @@ void DOPAIR_SUBSET_NAIVE(struct runner *r, struct cell *restrict ci,
struct
engine
*
e
=
r
->
e
;
struct
engine
*
e
=
r
->
e
;
error
(
"Don't use in actual runs ! Slow code !"
);
//
error("Don't use in actual runs ! Slow code !");
#ifdef WITH_OLD_VECTORIZATION
#ifdef WITH_OLD_VECTORIZATION
int
icount
=
0
;
int
icount
=
0
;
...
@@ -3165,13 +3165,14 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
...
@@ -3165,13 +3165,14 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
:
(
cj
->
loc
[
k
]
-
ci
->
loc
[
k
]
+
shift
[
k
]
>
0
)
?
2
:
1
);
:
(
cj
->
loc
[
k
]
-
ci
->
loc
[
k
]
+
shift
[
k
]
>
0
)
?
2
:
1
);
new_sid
=
sortlistID
[
new_sid
];
new_sid
=
sortlistID
[
new_sid
];
/* Do any of the cells need to be drifted
or sorted
first? */
/* Do any of the cells need to be drifted first? */
if
(
!
cell_is_drifted
(
cj
,
e
))
cell_drift_particles
(
cj
,
e
);
if
(
!
cell_is_drifted
(
cj
,
e
))
cell_drift_particles
(
cj
,
e
);
if
(
!
(
cj
->
sorted
&
(
1
<<
new_sid
)))
runner_do_sort
(
r
,
cj
,
(
1
<<
new_sid
),
1
);
/* Compute the interactions. */
/* If the cell is not sorted, don't re-generate the sort indices. */
DOPAIR_SUBSET
(
r
,
ci
,
parts
,
ind
,
count
,
cj
);
if
(
!
(
cj
->
sorted
&
(
1
<<
new_sid
)))
DOPAIR_SUBSET_NAIVE
(
r
,
ci
,
parts
,
ind
,
count
,
cj
);
else
DOPAIR_SUBSET
(
r
,
ci
,
parts
,
ind
,
count
,
cj
);
}
}
}
/* otherwise, pair interaction. */
}
/* otherwise, pair 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