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
6afeba8b
Commit
6afeba8b
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
More const-correctness
parent
17295369
No related branches found
No related tags found
1 merge request
!128
Parallel gpart sort
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/space.c
+7
-7
7 additions, 7 deletions
src/space.c
with
7 additions
and
7 deletions
src/space.c
+
7
−
7
View file @
6afeba8b
...
@@ -305,8 +305,8 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
...
@@ -305,8 +305,8 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
*/
*/
void
space_rebuild
(
struct
space
*
s
,
double
cell_max
,
int
verbose
)
{
void
space_rebuild
(
struct
space
*
s
,
double
cell_max
,
int
verbose
)
{
ticks
tic
=
getticks
();
const
ticks
tic
=
getticks
();
/* Be verbose about this. */
/* Be verbose about this. */
// message( "re)building space..." ); fflush(stdout);
// message( "re)building space..." ); fflush(stdout);
...
@@ -529,7 +529,7 @@ void space_rebuild(struct space *s, double cell_max, int verbose) {
...
@@ -529,7 +529,7 @@ void space_rebuild(struct space *s, double cell_max, int verbose) {
*/
*/
void
space_split
(
struct
space
*
s
,
struct
cell
*
cells
,
int
verbose
)
{
void
space_split
(
struct
space
*
s
,
struct
cell
*
cells
,
int
verbose
)
{
ticks
tic
=
getticks
();
const
ticks
tic
=
getticks
();
for
(
int
k
=
0
;
k
<
s
->
nr_cells
;
k
++
)
for
(
int
k
=
0
;
k
<
s
->
nr_cells
;
k
++
)
scheduler_addtask
(
&
s
->
e
->
sched
,
task_type_split_cell
,
task_subtype_none
,
k
,
scheduler_addtask
(
&
s
->
e
->
sched
,
task_type_split_cell
,
task_subtype_none
,
k
,
...
@@ -555,7 +555,7 @@ void space_split(struct space *s, struct cell *cells, int verbose) {
...
@@ -555,7 +555,7 @@ void space_split(struct space *s, struct cell *cells, int verbose) {
void
space_parts_sort
(
struct
space
*
s
,
size_t
*
ind
,
size_t
N
,
int
min
,
int
max
,
void
space_parts_sort
(
struct
space
*
s
,
size_t
*
ind
,
size_t
N
,
int
min
,
int
max
,
int
verbose
)
{
int
verbose
)
{
ticks
tic
=
getticks
();
const
ticks
tic
=
getticks
();
/*Populate the global parallel_sort structure with the input data */
/*Populate the global parallel_sort structure with the input data */
space_sort_struct
.
parts
=
s
->
parts
;
space_sort_struct
.
parts
=
s
->
parts
;
...
@@ -727,8 +727,8 @@ void space_do_parts_sort() {
...
@@ -727,8 +727,8 @@ void space_do_parts_sort() {
*indices.
*indices.
*
*
* @param s The #space.
* @param s The #space.
* @param ind The indices with respect to which the parts are sorted.
* @param ind The indices with respect to which the
g
parts are sorted.
* @param N The number of parts
* @param N The number of
g
parts
* @param min Lowest index.
* @param min Lowest index.
* @param max highest index.
* @param max highest index.
* @param verbose Are we talkative ?
* @param verbose Are we talkative ?
...
@@ -736,7 +736,7 @@ void space_do_parts_sort() {
...
@@ -736,7 +736,7 @@ void space_do_parts_sort() {
void
space_gparts_sort
(
struct
space
*
s
,
size_t
*
ind
,
size_t
N
,
int
min
,
int
max
,
void
space_gparts_sort
(
struct
space
*
s
,
size_t
*
ind
,
size_t
N
,
int
min
,
int
max
,
int
verbose
)
{
int
verbose
)
{
ticks
tic
=
getticks
();
const
ticks
tic
=
getticks
();
/*Populate the global parallel_sort structure with the input data */
/*Populate the global parallel_sort structure with the input data */
space_sort_struct
.
gparts
=
s
->
gparts
;
space_sort_struct
.
gparts
=
s
->
gparts
;
...
...
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