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
86936811
Commit
86936811
authored
Feb 04, 2014
by
Pedro Gonnet
Browse files
pointer to cell list might change after space_regrid.
Former-commit-id: f2eb0b0f61cab6fd4a1fd0ca05e88968fb6f8049
parent
be5295ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
86936811
...
...
@@ -290,7 +290,7 @@ void space_regrid ( struct space *s , double cell_max ) {
void
space_rebuild
(
struct
space
*
s
,
double
cell_max
)
{
int
j
,
k
,
cdim
[
3
],
nr_parts
=
s
->
nr_parts
,
nr_gparts
=
s
->
nr_gparts
;
struct
cell
*
restrict
c
,
*
restrict
cells
=
s
->
cells
;
struct
cell
*
restrict
c
,
*
restrict
cells
;
struct
part
*
restrict
finger
,
*
restrict
p
,
*
parts
=
s
->
parts
;
struct
xpart
*
xfinger
,
*
xparts
=
s
->
xparts
;
struct
gpart
*
gp
,
*
gparts
=
s
->
gparts
,
*
gfinger
;
...
...
@@ -303,6 +303,7 @@ void space_rebuild ( struct space *s , double cell_max ) {
/* Re-grid if necessary, or just re-set the cell data. */
space_regrid
(
s
,
cell_max
);
cells
=
s
->
cells
;
/* Run through the particles and get their cell index. */
// tic = getticks();
...
...
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