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
db551aca
Commit
db551aca
authored
Aug 12, 2016
by
Matthieu Schaller
Browse files
Added the missing new tasks in task_acts_on()
parent
fefe8478
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/const.h
View file @
db551aca
...
...
@@ -37,9 +37,9 @@
#define const_max_u_change 0.1f
/* Dimensionality of the problem */
#define HYDRO_DIMENSION_3D
//
#define HYDRO_DIMENSION_3D
//#define HYDRO_DIMENSION_2D
//
#define HYDRO_DIMENSION_1D
#define HYDRO_DIMENSION_1D
/* Hydrodynamical adiabatic index. */
#define HYDRO_GAMMA_5_3
...
...
src/engine.c
View file @
db551aca
...
...
@@ -2715,9 +2715,8 @@ void engine_step(struct engine *e) {
mask
|=
1
<<
task_type_sub_self
;
mask
|=
1
<<
task_type_sub_pair
;
mask
|=
1
<<
task_type_ghost
;
mask
|=
1
<<
task_type_extra_ghost
;
/* Adding unnecessary things to the mask
does not harm */
mask
|=
1
<<
task_type_extra_ghost
;
/* Adding unnecessary things to the mask
does not harm */
submask
|=
1
<<
task_subtype_density
;
submask
|=
1
<<
task_subtype_gradient
;
...
...
src/task.c
View file @
db551aca
...
...
@@ -111,6 +111,7 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
case
task_type_sort
:
case
task_type_ghost
:
case
task_type_extra_ghost
:
return
task_action_part
;
break
;
...
...
@@ -121,6 +122,7 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
switch
(
t
->
subtype
)
{
case
task_subtype_density
:
case
task_subtype_gradient
:
case
task_subtype_force
:
return
task_action_part
;
break
;
...
...
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