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
f9916428
Commit
f9916428
authored
Oct 30, 2019
by
Matthieu Schaller
Browse files
Style fixes
parent
771781cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/task.c
View file @
f9916428
...
...
@@ -72,8 +72,6 @@ const char *taskID_names[task_type_count] = {"none",
"timestep"
,
"timestep_limiter"
,
"timestep_sync"
,
"limiter_in"
,
"limiter_out"
,
"send"
,
"recv"
,
"grav_long_range"
,
...
...
@@ -167,8 +165,6 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
case
task_type_sort
:
case
task_type_ghost
:
case
task_type_extra_ghost
:
case
task_type_timestep_limiter
:
case
task_type_timestep_sync
:
case
task_type_cooling
:
case
task_type_end_hydro_force
:
return
task_action_part
;
...
...
@@ -240,6 +236,8 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
case
task_type_fof_self
:
case
task_type_fof_pair
:
case
task_type_timestep
:
case
task_type_timestep_limiter
:
case
task_type_timestep_sync
:
case
task_type_send
:
case
task_type_recv
:
if
(
t
->
ci
->
hydro
.
count
>
0
&&
t
->
ci
->
grav
.
count
>
0
)
...
...
src/task.h
View file @
f9916428
...
...
@@ -66,8 +66,6 @@ enum task_types {
task_type_timestep
,
task_type_timestep_limiter
,
task_type_timestep_sync
,
task_type_limiter_in
,
/* Implicit */
task_type_limiter_out
,
/* Implicit */
task_type_send
,
task_type_recv
,
task_type_grav_long_range
,
...
...
src/timeline.h
View file @
f9916428
...
...
@@ -47,10 +47,8 @@ typedef int8_t timebin_t;
/*! Fictitious time-bin for particles not awaken */
#define time_bin_not_awake (-num_time_bins)
#define time_bin_awake (-(num_time_bins + 1))
/*! Fictitious time-bin for particles woken up */
//
#define time_bin_awake (-1)
#define time_bin_awake (-
(num_time_bins +
1)
)
/* Maximal difference in time-bins between neighbouring particles */
#define time_bin_neighbour_max_delta_bin 2
...
...
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