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
9d290b1b
Commit
9d290b1b
authored
Jun 29, 2016
by
Matthieu Schaller
Browse files
Style and formatting
parent
2033187b
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
9d290b1b
...
...
@@ -97,7 +97,6 @@ static cpu_set_t entry_affinity;
*
* @return The new #link pointer.
*/
struct
link
*
engine_addlink
(
struct
engine
*
e
,
struct
link
*
l
,
struct
task
*
t
)
{
const
int
ind
=
atomic_inc
(
&
e
->
nr_links
);
...
...
@@ -1537,7 +1536,6 @@ void engine_maketasks(struct engine *e) {
*
* @return 1 if the space has to be rebuilt, 0 otherwise.
*/
int
engine_marktasks
(
struct
engine
*
e
)
{
struct
scheduler
*
s
=
&
e
->
sched
;
...
...
@@ -1756,7 +1754,6 @@ void engine_prepare(struct engine *e) {
error
(
"Failed to aggregate the rebuild flag across nodes."
);
rebuild
=
buff
;
#endif
e
->
tic_step
=
getticks
();
/* Did this not go through? */
if
(
rebuild
)
{
...
...
@@ -2107,6 +2104,7 @@ void engine_init_particles(struct engine *e) {
engine_prepare
(
e
);
engine_marktasks
(
e
);
/* Build the masks corresponding to the policy */
unsigned
int
mask
=
0
;
unsigned
int
submask
=
0
;
...
...
src/hydro/Default/hydro_debug.h
View file @
9d290b1b
...
...
@@ -18,7 +18,7 @@
******************************************************************************/
__attribute__
((
always_inline
))
INLINE
static
void
hydro_debug_particle
(
struct
part
*
p
,
struct
xpart
*
xp
)
{
const
struct
part
*
p
,
const
struct
xpart
*
xp
)
{
printf
(
"x=[%.3e,%.3e,%.3e], "
"v=[%.3e,%.3e,%.3e],v_full=[%.3e,%.3e,%.3e]
\n
a=[%.3e,%.3e,%.3e],
\n
"
...
...
src/hydro/Minimal/hydro_debug.h
View file @
9d290b1b
...
...
@@ -18,7 +18,7 @@
******************************************************************************/
__attribute__
((
always_inline
))
INLINE
static
void
hydro_debug_particle
(
struct
part
*
p
,
struct
xpart
*
xp
)
{
const
struct
part
*
p
,
const
struct
xpart
*
xp
)
{
printf
(
"x=[%.3e,%.3e,%.3e], "
"v=[%.3e,%.3e,%.3e],v_full=[%.3e,%.3e,%.3e]
\n
a=[%.3e,%.3e,%.3e], "
...
...
src/runner.c
View file @
9d290b1b
...
...
@@ -929,7 +929,6 @@ void runner_do_kick(struct runner *r, struct cell *c, int timer) {
ti_end_min
=
min
(
p
->
ti_end
,
ti_end_min
);
ti_end_max
=
max
(
p
->
ti_end
,
ti_end_max
);
}
}
/* Otherwise, aggregate data from children. */
...
...
@@ -1009,7 +1008,6 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
*
* @param data A pointer to this thread's data.
*/
void
*
runner_main
(
void
*
data
)
{
struct
runner
*
r
=
(
struct
runner
*
)
data
;
...
...
src/tools.c
View file @
9d290b1b
...
...
@@ -288,8 +288,8 @@ void self_all_density(struct runner *r, struct cell *ci) {
}
void
pairs_single_grav
(
double
*
dim
,
long
long
int
pid
,
struct
gpart
*
restrict
gparts
,
const
struct
part
*
parts
,
int
N
,
int
periodic
)
{
struct
gpart
*
restrict
gparts
,
const
struct
part
*
parts
,
int
N
,
int
periodic
)
{
int
i
,
k
;
// int mj, mk;
...
...
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