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
10f784f7
Commit
10f784f7
authored
Oct 13, 2018
by
Matthieu Schaller
Browse files
Add a task action for the star formation task. Add the new engine policy's name string.
parent
4413f001
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
10f784f7
...
...
@@ -111,6 +111,7 @@ const char *engine_policy_names[] = {"none",
"sourceterms"
,
"stars"
,
"structure finding"
,
"star formation"
,
"feedback"
};
/** The rank of the engine as a global variable (for messages). */
...
...
src/task.c
View file @
10f784f7
...
...
@@ -123,6 +123,9 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
return
task_action_part
;
break
;
case
task_type_star_formation
:
return
task_action_all
;
case
task_type_stars_ghost
:
return
task_action_spart
;
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