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
2d959882
Commit
2d959882
authored
Dec 02, 2016
by
Peter W. Draper
Browse files
Remove unused function space_clear_cells_mapper()
parent
78a746bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
2d959882
...
...
@@ -185,50 +185,6 @@ void space_rebuild_recycle(struct space *s, struct cell *c) {
}
}
/**
* @brief Mapper function to clean out the cell hierarchies for a regrid.
*/
void
space_clear_cells_mapper
(
void
*
map_data
,
int
num_elements
,
void
*
extra_data
)
{
struct
cell
*
cells
=
(
struct
cell
*
)
map_data
;
struct
space
*
s
=
(
struct
space
*
)
extra_data
;
for
(
int
k
=
0
;
k
<
num_elements
;
k
++
)
{
struct
cell
*
c
=
&
cells
[
k
];
space_rebuild_recycle
(
s
,
c
);
c
->
sorts
=
NULL
;
c
->
nr_tasks
=
0
;
c
->
density
=
NULL
;
c
->
gradient
=
NULL
;
c
->
force
=
NULL
;
c
->
grav
=
NULL
;
c
->
dx_max
=
0
.
0
f
;
c
->
sorted
=
0
;
c
->
count
=
0
;
c
->
gcount
=
0
;
c
->
init
=
NULL
;
c
->
extra_ghost
=
NULL
;
c
->
ghost
=
NULL
;
c
->
kick
=
NULL
;
c
->
cooling
=
NULL
;
c
->
sourceterms
=
NULL
;
c
->
super
=
c
;
#if WITH_MPI
c
->
recv_xv
=
NULL
;
c
->
recv_rho
=
NULL
;
c
->
recv_gradient
=
NULL
;
c
->
recv_ti
=
NULL
;
c
->
send_xv
=
NULL
;
c
->
send_rho
=
NULL
;
c
->
send_gradient
=
NULL
;
c
->
send_ti
=
NULL
;
#endif
}
}
/**
* @brief Re-build the top-level cell grid.
*
...
...
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