Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
05cfc439
Commit
05cfc439
authored
Mar 15, 2017
by
James Willis
Browse files
Removed last change as Sedov Blast 3D fails to run.
parent
2aee3db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cache.h
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
}
...
...
src/runner_doiact_vec.c
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
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment