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
05cfc439
Commit
05cfc439
authored
8 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Removed last change as Sedov Blast 3D fails to run.
parent
2aee3db7
No related branches found
No related tags found
1 merge request
!320
Dopair1 vectorisation merge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cache.h
+0
-5
0 additions, 5 deletions
src/cache.h
src/runner_doiact_vec.c
+8
-0
8 additions, 0 deletions
src/runner_doiact_vec.c
with
8 additions
and
5 deletions
src/cache.h
+
0
−
5
View file @
05cfc439
...
...
@@ -172,11 +172,6 @@ __attribute__((always_inline)) INLINE void cache_read_particles(
ci_cache
->
vz
[
i
]
=
ci
->
parts
[
i
].
v
[
2
];
}
/* Pad cache with fake particles that exist outside the cell so will not interact.*/
float
fake_pix
=
2
.
0
f
*
ci
->
width
[
0
]
*
ci
->
parts
[
ci
->
count
-
1
].
x
[
0
];
for
(
int
i
=
ci
->
count
;
i
<
ci
->
count
+
(
2
*
VEC_SIZE
);
i
++
)
ci_cache
->
x
[
i
]
=
fake_pix
;
#endif
}
...
...
This diff is collapsed.
Click to expand it.
src/runner_doiact_vec.c
+
8
−
0
View file @
05cfc439
...
...
@@ -445,6 +445,14 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec(
int
pad
=
(
num_vec_proc
*
VEC_SIZE
)
-
rem
;
count_align
+=
pad
;
/* Set positions to the same as particle pi so when the r2 > 0 mask is
* applied these extra contributions are masked out.*/
for
(
int
i
=
count
;
i
<
count_align
;
i
++
)
{
cell_cache
->
x
[
i
]
=
pix
.
f
[
0
];
cell_cache
->
y
[
i
]
=
piy
.
f
[
0
];
cell_cache
->
z
[
i
]
=
piz
.
f
[
0
];
}
}
vector
pjx
,
pjy
,
pjz
;
...
...
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