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
54aa9fea
Commit
54aa9fea
authored
Aug 23, 2016
by
Matthieu Schaller
Browse files
Cleaned out the last traces of the gsort task
parent
9ca06182
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.h
View file @
54aa9fea
...
...
@@ -101,8 +101,8 @@ struct cell {
struct
gpart
*
gparts
;
/* Pointers for the sorted indices. */
struct
entry
*
sort
,
*
gsort
;
unsigned
int
sorted
,
gsorted
;
struct
entry
*
sort
;
unsigned
int
sorted
;
/* Pointers to the next level of cells. */
struct
cell
*
progeny
[
8
];
...
...
@@ -114,8 +114,8 @@ struct cell {
struct
cell
*
super
;
/* The task computing this cell's sorts. */
struct
task
*
sorts
,
*
gsorts
;
int
sortsize
,
gsortsize
;
struct
task
*
sorts
;
int
sortsize
;
/* The tasks computing this cell's density. */
struct
link
*
density
,
*
gradient
,
*
force
,
*
grav
;
...
...
src/runner.h
View file @
54aa9fea
...
...
@@ -29,26 +29,27 @@ extern const char runner_flip[27];
struct
cell
;
struct
engine
;
/* A struct representing a runner's thread and its data. */
/**
* @brief A struct representing a runner's thread and its data.
*/
struct
runner
{
/* The id of this thread. */
/*
!
The id of this thread. */
int
id
;
/* The thread which it is running. */
/*
!
The
actual
thread which it is running. */
pthread_t
thread
;
/* The queue to use to get tasks. */
/*
!
The queue to use to get tasks. */
int
cpuid
,
qid
;
/* The
underlying
runner. */
/*
!
The
engine owing this
runner. */
struct
engine
*
e
;
};
/* Function prototypes. */
void
runner_do_ghost
(
struct
runner
*
r
,
struct
cell
*
c
);
void
runner_do_sort
(
struct
runner
*
r
,
struct
cell
*
c
,
int
flag
,
int
clock
);
void
runner_do_gsort
(
struct
runner
*
r
,
struct
cell
*
c
,
int
flag
,
int
clock
);
void
runner_do_kick
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_kick_fixdt
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_init
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
...
...
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