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
53b04e19
Commit
53b04e19
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Flip the cells in the PAIR_NOSORT tasks *before* extracting values.
parent
c8b61b71
No related branches found
No related tags found
1 merge request
!310
Star particles and gparts links over MPI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner_doiact_nosort.h
+8
-8
8 additions, 8 deletions
src/runner_doiact_nosort.h
with
8 additions
and
8 deletions
src/runner_doiact_nosort.h
+
8
−
8
View file @
53b04e19
...
@@ -18,15 +18,15 @@ void DOPAIR1_NOSORT(struct runner *r, struct cell *ci, struct cell *cj) {
...
@@ -18,15 +18,15 @@ void DOPAIR1_NOSORT(struct runner *r, struct cell *ci, struct cell *cj) {
if
(
!
cell_is_drifted
(
ci
,
e
))
cell_drift
(
ci
,
e
);
if
(
!
cell_is_drifted
(
ci
,
e
))
cell_drift
(
ci
,
e
);
if
(
!
cell_is_drifted
(
cj
,
e
))
cell_drift
(
cj
,
e
);
if
(
!
cell_is_drifted
(
cj
,
e
))
cell_drift
(
cj
,
e
);
/* Get the relative distance between the pairs, wrapping. */
double
shift
[
3
]
=
{
0
.
0
,
0
.
0
,
0
.
0
};
space_getsid
(
e
->
s
,
&
ci
,
&
cj
,
shift
);
const
int
count_i
=
ci
->
count
;
const
int
count_i
=
ci
->
count
;
const
int
count_j
=
cj
->
count
;
const
int
count_j
=
cj
->
count
;
struct
part
*
restrict
parts_i
=
ci
->
parts
;
struct
part
*
restrict
parts_i
=
ci
->
parts
;
struct
part
*
restrict
parts_j
=
cj
->
parts
;
struct
part
*
restrict
parts_j
=
cj
->
parts
;
/* Get the relative distance between the pairs, wrapping. */
double
shift
[
3
]
=
{
0
.
0
,
0
.
0
,
0
.
0
};
space_getsid
(
e
->
s
,
&
ci
,
&
cj
,
shift
);
/* Loop over the parts in ci. */
/* Loop over the parts in ci. */
for
(
int
pid
=
0
;
pid
<
count_i
;
pid
++
)
{
for
(
int
pid
=
0
;
pid
<
count_i
;
pid
++
)
{
...
@@ -135,15 +135,15 @@ void DOPAIR2_NOSORT(struct runner *r, struct cell *ci, struct cell *cj) {
...
@@ -135,15 +135,15 @@ void DOPAIR2_NOSORT(struct runner *r, struct cell *ci, struct cell *cj) {
if
(
!
cell_is_drifted
(
ci
,
e
))
cell_drift
(
ci
,
e
);
if
(
!
cell_is_drifted
(
ci
,
e
))
cell_drift
(
ci
,
e
);
if
(
!
cell_is_drifted
(
cj
,
e
))
cell_drift
(
cj
,
e
);
if
(
!
cell_is_drifted
(
cj
,
e
))
cell_drift
(
cj
,
e
);
/* Get the relative distance between the pairs, wrapping. */
double
shift
[
3
]
=
{
0
.
0
,
0
.
0
,
0
.
0
};
space_getsid
(
e
->
s
,
&
ci
,
&
cj
,
shift
);
const
int
count_i
=
ci
->
count
;
const
int
count_i
=
ci
->
count
;
const
int
count_j
=
cj
->
count
;
const
int
count_j
=
cj
->
count
;
struct
part
*
restrict
parts_i
=
ci
->
parts
;
struct
part
*
restrict
parts_i
=
ci
->
parts
;
struct
part
*
restrict
parts_j
=
cj
->
parts
;
struct
part
*
restrict
parts_j
=
cj
->
parts
;
/* Get the relative distance between the pairs, wrapping. */
double
shift
[
3
]
=
{
0
.
0
,
0
.
0
,
0
.
0
};
space_getsid
(
e
->
s
,
&
ci
,
&
cj
,
shift
);
/* Loop over the parts in ci. */
/* Loop over the parts in ci. */
for
(
int
pid
=
0
;
pid
<
count_i
;
pid
++
)
{
for
(
int
pid
=
0
;
pid
<
count_i
;
pid
++
)
{
...
...
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