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
e73f5dc0
Commit
e73f5dc0
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Documentation fixes
parent
1c17e4d2
No related branches found
No related tags found
1 merge request
!493
Updated cell splitting strategy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/space.c
+8
-5
8 additions, 5 deletions
src/space.c
with
8 additions
and
5 deletions
src/space.c
+
8
−
5
View file @
e73f5dc0
...
@@ -1281,6 +1281,7 @@ void space_sparts_get_cell_index_mapper(void *map_data, int nr_sparts,
...
@@ -1281,6 +1281,7 @@ void space_sparts_get_cell_index_mapper(void *map_data, int nr_sparts,
*
*
* @param s The #space.
* @param s The #space.
* @param ind The array of indices to fill.
* @param ind The array of indices to fill.
* @param cell_counts The cell counters to update.
* @param cells The array of #cell to update.
* @param cells The array of #cell to update.
* @param verbose Are we talkative ?
* @param verbose Are we talkative ?
*/
*/
...
@@ -1309,6 +1310,7 @@ void space_parts_get_cell_index(struct space *s, int *ind, int *cell_counts,
...
@@ -1309,6 +1310,7 @@ void space_parts_get_cell_index(struct space *s, int *ind, int *cell_counts,
*
*
* @param s The #space.
* @param s The #space.
* @param gind The array of indices to fill.
* @param gind The array of indices to fill.
* @param cell_counts The cell counters to update.
* @param cells The array of #cell to update.
* @param cells The array of #cell to update.
* @param verbose Are we talkative ?
* @param verbose Are we talkative ?
*/
*/
...
@@ -1337,6 +1339,7 @@ void space_gparts_get_cell_index(struct space *s, int *gind, int *cell_counts,
...
@@ -1337,6 +1339,7 @@ void space_gparts_get_cell_index(struct space *s, int *gind, int *cell_counts,
*
*
* @param s The #space.
* @param s The #space.
* @param sind The array of indices to fill.
* @param sind The array of indices to fill.
* @param cell_counts The cell counters to update.
* @param cells The array of #cell to update.
* @param cells The array of #cell to update.
* @param verbose Are we talkative ?
* @param verbose Are we talkative ?
*/
*/
...
@@ -1368,8 +1371,8 @@ void space_sparts_get_cell_index(struct space *s, int *sind, int *cell_counts,
...
@@ -1368,8 +1371,8 @@ void space_sparts_get_cell_index(struct space *s, int *sind, int *cell_counts,
* @param xparts The corresponding #xpart array to sort as well.
* @param xparts The corresponding #xpart array to sort as well.
* @param ind The indices with respect to which the parts are sorted.
* @param ind The indices with respect to which the parts are sorted.
* @param counts Number of particles per index.
* @param counts Number of particles per index.
* @param num_bins Total number of bins (length of
#
count
s
).
* @param num_bins Total number of bins (length of count).
* @param parts_offset Offset of the #part
s
array from the global #part
s
array.
* @param parts_offset Offset of the #part array from the global #part array.
*/
*/
void
space_parts_sort
(
struct
part
*
parts
,
struct
xpart
*
xparts
,
int
*
ind
,
void
space_parts_sort
(
struct
part
*
parts
,
struct
xpart
*
xparts
,
int
*
ind
,
int
*
counts
,
int
num_bins
,
ptrdiff_t
parts_offset
)
{
int
*
counts
,
int
num_bins
,
ptrdiff_t
parts_offset
)
{
...
@@ -1425,8 +1428,8 @@ void space_parts_sort(struct part *parts, struct xpart *xparts, int *ind,
...
@@ -1425,8 +1428,8 @@ void space_parts_sort(struct part *parts, struct xpart *xparts, int *ind,
* @param sparts The array of #spart to sort.
* @param sparts The array of #spart to sort.
* @param ind The indices with respect to which the #spart are sorted.
* @param ind The indices with respect to which the #spart are sorted.
* @param counts Number of particles per index.
* @param counts Number of particles per index.
* @param num_bins Total number of bins (length of
#
counts).
* @param num_bins Total number of bins (length of counts).
* @param sparts_offset Offset of the #spart
s
array from the global #spart
s
* @param sparts_offset Offset of the #spart array from the global #spart
.
* array.
* array.
*/
*/
void
space_sparts_sort
(
struct
spart
*
sparts
,
int
*
ind
,
int
*
counts
,
void
space_sparts_sort
(
struct
spart
*
sparts
,
int
*
ind
,
int
*
counts
,
...
@@ -1482,7 +1485,7 @@ void space_sparts_sort(struct spart *sparts, int *ind, int *counts,
...
@@ -1482,7 +1485,7 @@ void space_sparts_sort(struct spart *sparts, int *ind, int *counts,
* @param sparts Global #spart array for re-linking.
* @param sparts Global #spart array for re-linking.
* @param ind The indices with respect to which the gparts are sorted.
* @param ind The indices with respect to which the gparts are sorted.
* @param counts Number of particles per index.
* @param counts Number of particles per index.
* @param num_bins Total number of bins (length of
#
counts).
* @param num_bins Total number of bins (length of counts).
*/
*/
void
space_gparts_sort
(
struct
gpart
*
gparts
,
struct
part
*
parts
,
void
space_gparts_sort
(
struct
gpart
*
gparts
,
struct
part
*
parts
,
struct
spart
*
sparts
,
int
*
ind
,
int
*
counts
,
struct
spart
*
sparts
,
int
*
ind
,
int
*
counts
,
...
...
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