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
0a93e94d
Commit
0a93e94d
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Style improvement
parent
ca7271ed
No related branches found
No related tags found
1 merge request
!208
Test 125
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner_doiact.h
+16
-15
16 additions, 15 deletions
src/runner_doiact.h
with
16 additions
and
15 deletions
src/runner_doiact.h
+
16
−
15
View file @
0a93e94d
...
...
@@ -121,8 +121,7 @@ void DOPAIR_NAIVE(struct runner *r, struct cell *restrict ci,
float
dxq
[
3
*
VEC_SIZE
]
__attribute__
((
aligned
(
16
)));
struct
part
*
piq
[
VEC_SIZE
],
*
pjq
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
/* Anything to do here? */
if
(
ci
->
ti_end_min
>
ti_current
&&
cj
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -224,7 +223,7 @@ void DOSELF_NAIVE(struct runner *r, struct cell *restrict c) {
struct
part
*
piq
[
VEC_SIZE
],
*
pjq
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
/* Anything to do here? */
if
(
c
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -326,7 +325,7 @@ void DOPAIR_SUBSET_NAIVE(struct runner *r, struct cell *restrict ci,
struct
part
*
piq
[
VEC_SIZE
],
*
pjq
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
const
int
count_j
=
cj
->
count
;
struct
part
*
restrict
parts_j
=
cj
->
parts
;
...
...
@@ -433,7 +432,7 @@ void DOPAIR_SUBSET(struct runner *r, struct cell *restrict ci,
struct
part
*
piq
[
VEC_SIZE
],
*
pjq
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
const
int
count_j
=
cj
->
count
;
struct
part
*
restrict
parts_j
=
cj
->
parts
;
...
...
@@ -627,7 +626,7 @@ void DOSELF_SUBSET(struct runner *r, struct cell *restrict ci,
struct
part
*
piq
[
VEC_SIZE
],
*
pjq
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
const
int
count_i
=
ci
->
count
;
struct
part
*
restrict
parts_j
=
ci
->
parts
;
...
...
@@ -719,7 +718,7 @@ void DOPAIR1(struct runner *r, struct cell *ci, struct cell *cj) {
struct
part
*
piq
[
VEC_SIZE
],
*
pjq
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
/* Anything to do here? */
if
(
ci
->
ti_end_min
>
ti_current
&&
cj
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -912,7 +911,7 @@ void DOPAIR2(struct runner *r, struct cell *ci, struct cell *cj) {
struct
part
*
piq2
[
VEC_SIZE
],
*
pjq2
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
/* Anything to do here? */
if
(
ci
->
ti_end_min
>
ti_current
&&
cj
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -1298,7 +1297,8 @@ void DOSELF1(struct runner *r, struct cell *restrict c) {
float
dxq2
[
3
*
VEC_SIZE
]
__attribute__
((
aligned
(
16
)));
struct
part
*
piq2
[
VEC_SIZE
],
*
pjq2
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
if
(
c
->
ti_end_min
>
ti_current
)
return
;
if
(
c
->
ti_end_max
<
ti_current
)
error
(
"Cell in an impossible time-zone"
);
...
...
@@ -1526,7 +1526,8 @@ void DOSELF2(struct runner *r, struct cell *restrict c) {
float
dxq2
[
3
*
VEC_SIZE
]
__attribute__
((
aligned
(
16
)));
struct
part
*
piq2
[
VEC_SIZE
],
*
pjq2
[
VEC_SIZE
];
#endif
TIMER_TIC
TIMER_TIC
;
if
(
c
->
ti_end_min
>
ti_current
)
return
;
if
(
c
->
ti_end_max
<
ti_current
)
error
(
"Cell in an impossible time-zone"
);
...
...
@@ -1721,7 +1722,7 @@ void DOSUB_PAIR1(struct runner *r, struct cell *ci, struct cell *cj, int sid,
struct
space
*
s
=
r
->
e
->
s
;
const
int
ti_current
=
r
->
e
->
ti_current
;
TIMER_TIC
TIMER_TIC
;
/* Should we even bother? */
if
(
ci
->
ti_end_min
>
ti_current
&&
cj
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -1962,7 +1963,7 @@ void DOSUB_SELF1(struct runner *r, struct cell *ci, int gettimer) {
const
int
ti_current
=
r
->
e
->
ti_current
;
TIMER_TIC
TIMER_TIC
;
/* Should we even bother? */
if
(
ci
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -2005,7 +2006,7 @@ void DOSUB_PAIR2(struct runner *r, struct cell *ci, struct cell *cj, int sid,
struct
space
*
s
=
r
->
e
->
s
;
const
int
ti_current
=
r
->
e
->
ti_current
;
TIMER_TIC
TIMER_TIC
;
/* Should we even bother? */
if
(
ci
->
ti_end_min
>
ti_current
&&
cj
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -2246,7 +2247,7 @@ void DOSUB_SELF2(struct runner *r, struct cell *ci, int gettimer) {
const
int
ti_current
=
r
->
e
->
ti_current
;
TIMER_TIC
TIMER_TIC
;
/* Should we even bother? */
if
(
ci
->
ti_end_min
>
ti_current
)
return
;
...
...
@@ -2278,7 +2279,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
struct
space
*
s
=
r
->
e
->
s
;
const
int
ti_current
=
r
->
e
->
ti_current
;
TIMER_TIC
TIMER_TIC
;
/* Find out in which sub-cell of ci the parts are. */
struct
cell
*
sub
=
NULL
;
...
...
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