Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
10f784f7
Commit
10f784f7
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Add a task action for the star formation task. Add the new engine policy's name string.
parent
4413f001
No related branches found
No related tags found
1 merge request
!632
Add functions to permanently remove particles from a simulation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/engine.c
+1
-0
1 addition, 0 deletions
src/engine.c
src/task.c
+3
-0
3 additions, 0 deletions
src/task.c
with
4 additions
and
0 deletions
src/engine.c
+
1
−
0
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). */
...
...
This diff is collapsed.
Click to expand it.
src/task.c
+
3
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment